|
|
nboisen Loyal user 289 Posts |
I am looking for a simple formula or algorithm to generate a seemingly random sequence of 2-digit numbers.
In otherwords, the knowing one number in the series and the formula/algorithm the performer can easily calculate the next number in the sequence, while the spectators only see a random sequence. Any ideas or hints. I thank you in advance for your assistance. Regards, Neil |
Philemon Vanderbeck Inner circle Seattle, WA 4694 Posts |
There's a method in Kaye's "Handbook of Mental Magic" for single digit numbers that could probably be adapted for double digit numbers.
Professor Philemon Vanderbeck
That Creepy Magician "I use my sixth sense to create the illusion of possessing the other five." |
nboisen Loyal user 289 Posts |
Philemon: Hmm... I knew I should have held on to that book. I just sold my copy several months ago! In any event, thanks for the reply.
|
Alan Jackson Elite user Cardiff, UK 432 Posts |
An old method of generating pseudo-randon numbers was known as the "middle square method", which I think was originally devised by von Neumann. Start off with an arbitrary number n-digits long, square it and take the middle n digits (prefixing the square with a zero if necessary). There were problems with the numbers cycling occasionally and it doesn't work so well with two digit numbers, but the idea might be worth exploring.
There are 10 kinds of people: those who understand binary numbers, and those who don't.
|
cafeinst Elite user 489 Posts |
Take any prime number, say 29. There must exist a number called a generator of the prime number. In the case of 29, 11 is a generator.
It is easy to produce the following repeating sequence of 28=29-1 numbers from the generator: 11,5,26,25,14,9,12,16,2,22,10,23,21,28,18,24,3,4,15,20,17,13,27,7,19,6,8,1,11.... via the following operation: 11 mod 29, 11^2 mod 29, 11^3 mod 29, 11^4 mod 29.... |
Nir Dahan Inner circle Munich, Germany 1390 Posts |
Do you want to do this in your head? on the fly? or do you want a way to produce pseudo random sequences in general.
if you answered yes to the first questions - this is harder. otherwise use an LFSR |
TomasB Inner circle Sweden 1144 Posts |
Also, how long does the sequence need to be and can you choose which number to begin with or does a spectator choose it?
/Tomas |
ryesteve Regular user 196 Posts |
You could use numbers you already know... eg phone numbers, birthdays, SS #... you just need to remember how you've sequenced them.
|
The Magic Cafe Forum Index » » Magical equations » » Help with sequence formula (0 Likes) |
[ Top of Page ] |
All content & postings Copyright © 2001-2024 Steve Brooks. All Rights Reserved. This page was created in 0.01 seconds requiring 5 database queries. |
The views and comments expressed on The Magic Café are not necessarily those of The Magic Café, Steve Brooks, or Steve Brooks Magic. > Privacy Statement < |