John Grieve: Number Theory Game
 14 Jun 2010 @ 06:17, by John Grieve Number Theory Game/ Chaos Theory Game/ trivial or Deep? In Chaos theory we get interesting results when you re-iterate something that does not give a Straight-line(linear) result. Here is a game which I have just invented, which those of you who like playing with calculators may enjoy. Start with a number, let's say 2. Find the nth root of it, let's say the square root, which in this case is 1.41421. I am deliberately taking the first 5 decimal places though it could be any number of places, as long as you stick with the same number. Reverse those 5 decimal digits and REPEAT that is RE-ITERATE. When you reverse 1.41421 you get 1.12414 and when you take the square root of this number you get 1.06025. This number reversed becomes 1.52060. And so on It is evident that this process could terminate if we arrive at a palindromic decimal number, or if any previous number is repeated in which case an endless loop is created. Trivial or Deep ? I look forward to your comments and discoveries.

 [< Back] [John Grieve]

Category:

14 Jun 2010 @ 07:11 by swanny @70.65.31.24 : Average
I wonder if there would be an average that one might reach but I suppose that would depend on how many times it was done, but say do it 100 times what would the average be for that process done 100 times? Just curious.

14 Jun 2010 @ 08:31 by johnjoseph : Averages
As you may know, averages are important in linear and non-linear maths and dynamics,but to do it a significant number of times you would have to give up the calculator and program it.To help do this there is an interesting Applesoft Emulator at http://www.calormen.com/applesoft/

14 Jun 2010 @ 11:15 by johnjoseph : moving averages
hi ed,here's something on averages. The more relevant non-linear moving average (NMA) is not easy to find on the web:http://www.physforum.com/index.php?showtopic=12502&st=510
Incidentally i used to have an apple ii plus and programme in 6502 machine language and Assembler.Anyone interested in writing fast number theory programs might find this interesting:http://www.6502asm.com/

14 Jun 2010 @ 20:30 by johnjoseph : Programme for calculating averages
I've just written an APPLESOFT BASIC programme which can calculate the averages mentioned earlier. I will Copy and Paste it into a comment, when less tired ,and if you do the same into the Emulator you will see the results generated.
john

14 Jun 2010 @ 20:54 by swanny @70.65.31.24 : wow
wow thanks john and that was fast,
yea take a break you deserve it
I myself can't do programing except maybe a little HTML
which doesn't count so thanks again
be curious to see the results of a 100x sample
cheers

ed

15 Jun 2010 @ 06:24 by johnjoseph : Chaos Game: Averages Programme
Hi Ed,here's the program i mentioned. The emulator is slower than a real APPLE but it gets there in the end. I'm not sure if this is non-linear etc. and also the Average may be non-linear but I'll leave that to someone more expert than me in Statistics.

5 REM Number Theory Game
6 REM Average of 100 Tries
7 CLEAR:TEXT
9 HOME
15 DIM M\$(9):X=2:D=100:CO=0:N=0
20 GOSUB 600

45 PRINT "The Value of N is ";N: PRINT "The Average is ";CO/D

50 STOP

400 X2 = SQR(X)
410 X2\$ = STR\$(X2)
420 RETURN
450 STOP

500 REM Reverse Character
502 PRINT TAB(10) X2\$
505 X2=0
510 FOR Y= 6 TO 0 STEP -1
515 M\$(Y+1)= MID\$((X2\$),ABS(Y-7),1)
517 NEXT Y
519 P\$=""
521 M\$(0)="1.":P\$=M\$(0)
522 FOR T= 1 TO 6: P\$=P\$+M\$(T):PRINTP\$:NEXT T
535 REM SWITCH

540 X2=VAL(P\$):P\$ = ""
542 X=X2:GOSUB 400
545 RETURN
555 STOP

600 REM MAIN S/R
610 REM
612 IF N=0 THEN GOSUB 400
615 CO=CO+X2
620 PRINT N
630 REM
645 GOSUB 500
647 N=N+1
646 P\$=""
648 IF N=D THEN RETURN
660 GOTO 615

15 Jun 2010 @ 06:47 by swanny @70.65.31.24 : hmmm
thanks
hmmmmm when I try to run the program it doesn't seem to come up with the 100 th time and just goes to 99 and gives me this error message
" Syntax error: Expected: ')', saw [NUMBER: 5 ], line: 45 "
whats going on ? hmmm its got me stumped...

ed

15 Jun 2010 @ 07:28 by johnjoseph : Sorry technical problem
It should run alright now, I was trying to get a better display at the end but now you will need to scroll to the bottom when the program finishes, to see the results
john

15 Jun 2010 @ 08:09 by swanny @70.65.31.24 : great
great it worked thanks and youre not to bad at this
for the 100th run I got an average of 1.21443593
which is a finite number any way
I'm going to run it again an see if I get the same number
the second time too.
hmmm yes why would it give the same number each time you run it?
the second time it gave the same number
but I wonder if thats normal or not
anyway
I get an error or note at the end of
" Break, line: 50 "
anyway
what would you need to change in the program to get it to run 200 times
but good work none the less
thanks

ed

15 Jun 2010 @ 08:31 by johnjoseph : Averages in longer runs
Hi,to get a longer run change the value of the variable D in line 15, e.g. to 200. But it is worth noting that the emulator slows down the longer it runs. I may write a version of this programme for 6502 Assembler when it would be possible to do very long runs reasonably quickly

15 Jun 2010 @ 09:26 by swanny @70.65.31.24 : Lower Number
thanks again john and youre up late to I see
running it 200 times gives a different lower number
ie 1.21076837 im just going to run it twice thus to see
if its the same each time.
yes apparently and now thus I wonder if the trend is the more times you run
will the average go lower or higher or is there a correlation, trend or is it random. hmm running it 300 times gave ie 1.2125513 higher than 200 times but not as high as 100 times

100 times = 1.21443593
200 times = 1.21076837
300 times = 1.2125513
400 times = 1.21108105

okay so but what the initial or root number we're squaring
it gives us an average of 1.21 and
1.21 x 1.21 = 1.4641
hmmmm
well anyway

carry on

ed

6 Jul 2016 @ 03:27 by king king @106.186.120.16 : king
http://www.oakley-sunglasses.in.net/
http://www.oakley--sunglasses.com.co/
http://www.oakleysunglassesoutlet.us.org/
http://www.oakleysunglasses1.us.com/
http://www.oakleysunglasses.com.co/
http://www.rayban-sunglasses.in.net/
http://www.ray-ban-sunglasses.in.net/
http://www.rayban--sunglasses.org/
http://www.polo-ralph-lauren.us.com/
http://www.polo-ralph-lauren-outlet.us.com/
http://www.burberryoutlet-stores.us.com/
http://www.burberryoutlet-store.us.com/
http://www.michaelkors-outlet-online.us.org/
http://www.outletonline-michaelkors.com/
http://www.michaelkors-outlet-online.us.com/
http://www.michael-korsoutlet.in.net/
http://www.michael-korsoutletonline.eu.com/
http://www.michaelkors-handbags.in.net/
http://www.uggs-outletboots.in.net/
http://www.uggsoutlets.us.com/
http://www.uggs-outlet.in.net/
http://www.cheapuggboots.in.net/
http://www.cheap-uggs.in.net/
http://www.louisvuitonoutlet.us.com/
http://www.louisvuitton-outlets.org/
http://www.louisvuitton.ar.com/
http://www.louisvuitton-outlet-store.com/
http://www.louis-vuittonhandbags.org/
http://www.redbottoms.in.net/
http://www.christianlouboutin-outlet.in.net/
http://www.christian-louboutin-shoes.in.net/
http://www.christian--louboutin.org.uk/
http://www.rolexreplicawatches.us.com/
http://www.replica--watches.com/
http://www.air-jordanshoes.net/
http://www.nike-outlet.in.net/
http://www.toryburch-outletonline.in.net/
http://www.guccioutletonline.in.net/
http://www.longchamp-outlet.in.net/
http://www.longchamphandbags.in.net/
http://www.longchamphandbagsoutlet.us.com/
http://www.tiffanyandcosale.us.com/
http://www.tiffany-andcojewelry.us.com/
http://www.nikeairmaxinc.net/
http://www.nikeair-max.net/
http://www.nike-freerun.com/
http://www.chanel-handbagsoutlet.in.net/
http://www.coachoutlet-online.in.net/
http://www.coachfactory-outletonline.in.net/
http://www.coachoutletstoreonline.jp.net/
http://www.coachpurse.in.net/
http://www.truereligionoutlet.in.net/
http://www.truereligionjeansoutlet.us.com/
http://www.truereligionoutlets.in.net/
http://www.truereligion.in.net/
http://www.nike-airmax-pas-cher.fr/
http://www.airmax-nike.fr/
http://www.airjordanpas-cher.fr/
http://www.nike-free-run.fr/
http://www.nike-roshe-run.fr/
http://www.sac-longchamp-pas-cher.fr/
http://www.sac--longchamps.fr/
http://www.poloralphlauren-pascher.fr/
http://www.louboutin-pas-chere.fr/
http://www.sac-michaelkors-pascher.fr/
http://www.sac-burberry-pascher.fr/
http://www.lunette-oakley-pascher.fr/
http://www.lunette-rayban-pas-cher.fr/
http://www.hollister-abercrombiefitch.fr/
http://www.sachermes.fr/
http://www.vanspas-cher.fr/
http://www.timberland-paschere.fr/
http://www.newbalancesoldes.fr/
http://www.converse-pas-cher.fr/
http://www.the-north-face.fr/
http://www.niketnrequinpascher.fr/
http://www.polo-lacoste-pascher.fr/
http://www.nikeblazerpaschere.fr/
http://www.nikeair-force.fr/
http://www.sac-guesspascher.fr/
http://www.sac-vanessa-bruno.fr/
http://www.scarpehogan--outlet.it/
http://www.rayban-sunglasses.me.uk/
http://www.michaelkorshandbags-uk.org.uk/
http://www.michael--korsoutlet.ca/
http://www.hollistersale.me.uk/
http://www.thenorth--face.co.uk/
http://www.mulberryhandbagsoutlet.co.uk/
http://www.ralphlauren-outlet.co.uk/
http://www.nike--airmax.co.uk/
http://www.nikeairmax.org.uk/
http://www.nike-free-run.org.uk/
http://www.abercrombie-and-fitch.me.uk/
http://www.nike-roshe-run.org.uk/
http://www.nike-trainers.org.uk/
http://www.nike-air-huarache.co.uk/
http://www.longchampbags.org.uk/
http://www.hollister-abercrombie.es/
http://www.vans-shoes-outlet.com/
http://www.nikerosherun.net/
http://www.maccosmeticsoutlet.us/
http://www.abercrombie-andfitch.us.com/
http://www.hermesbirkinbags.com.co/
http://www.the-northfaceoutlet.us.com/
http://www.the-north-face.in.net/
http://www.newbalance-shoes.in.net/
http://www.reebok-outlet.in.net/
http://www.lululemonoutlets.in.net/
http://www.nfljerseys-cheap.us.com/
http://www.cheap-wedding-dresses.org/
http://www.mont-blanc-pens.us.com/
http://www.ferragamo-shoes.net/
http://www.giuseppe-zanotti.in.net/
http://www.instylerionicstyler.us.com/
http://www.babyliss.in.net/
http://www.mcm-handbags.net/
http://www.chiflatiron.cn.com/
http://www.insanityworkout.in.net/
http://www.ghd-hair-straighteners.me.uk/
http://www.bottegaveneta-handbagsoutlet.com/
http://www.valentino-shoes.us.com/
http://www.herveleger.us/
http://www.asicso.com/
http://www.soccer--shoes.net/
http://www.soccerjerseys.com.co/
http://www.celine-handbags.org/
http://www.p90x3workout.us.com/
http://www.jimmy-choo-shoes.us.com/
http://www.hollister-clothingstore.us.com/
http://www.nike-airmax.nl/
http://www.baseball-bats.us/
http://www.phonecases.us.com/
http://www.timberland-boots.us/
http://www.occhiali-oakley.it/
http://www.christian--louboutin.it/
http://www.ralphlauren-outlet.it/
http://www.abercrombiehollister.it/
http://www.nikeair-max.it/
http://www.vans-scarpe.it/
http://www.borse--gucci.it/
http://www.rayban--occhiali.it/
http://www.converse--shoes.com/
http://www.saclancelpascher.fr/
http://www.toms--shoes.net/
http://www.montrespas-cher.fr/
http://www.karenmillen.me.uk/
http://www.supra--shoes.com/
http://www.juicycoutureoutlet.jp.net/
http://www.juicycoutureoutlet.com.co/
http://www.marcjacobsoutlet.us/
http://www.cheapweddingdresses.org.uk/
http://www.replica--watches.co.uk/
http://www.pandora-jewelry.us.com/
http://www.pandorajewelrys.us.com/
http://www.pandora--charms.in.net/
http://www.pandora--charms.org.uk/
http://www.thomassabouk.org.uk/
http://www.swarovskijewelry.us.com/
http://www.swarovski.me.uk/
http://www.bottesugg-pas-cher.fr/
http://www.ugg-pas-cher.fr/
http://www.ugg-boots-uggs.co.uk/
http://www.ugg--australia.it/
http://www.louis-vuitton-pas-cher.fr/
http://www.louisvuitton-sac.fr/
http://www.louis-vuitton-handbags.org.uk/
http://www.borse-louis-vuitton.it/
http://coachofficialsite.blog.com/
http://www.moncler.org.uk/
http://www.moncleroutlet.com.co/
http://www.monclerjackets.us.org/
http://www.doudoune-monclerpascher.fr/
http://www.moncler--outlet.it/
http://www.moncleronline-shop.de/
http://www.moncler.org.es/
http://www.moncler.co.nl/
http://www.oakleysglasses.com/
http://www.michael-kors-outlet.us.org/
http://www.michaelkorsoutletonline-sale.us.com/

 Your Name: Your URL: (or email) Subject: Comment: For verification, please type the word you see on the left:

Other entries in
26 Feb 2017 @ 20:56: Trump versus the Media
26 Jan 2017 @ 18:53: Women's Marches the beginning of the Fightback
7 Jan 2017 @ 20:11: Now's the End Times
15 Nov 2016 @ 22:48: Theory of Civilization-- Part 3
15 Nov 2016 @ 22:20: Theory of Civilization-- Part 2
15 Nov 2016 @ 21:52: Theory of Civilization-- Part 1
14 Nov 2016 @ 22:11: Global march of the right in the context of the dynamics of civilization
12 May 2016 @ 21:47: SuperCivilization, The Second Axial Age and not-so-enlightened Despots Cont.
12 May 2016 @ 21:20: SuperCivilization, The Second Axial Age and not-so-enlightened Despots
28 Feb 2016 @ 18:55: Economic Evolution