-
5 Comments
Show
2 older comments
JD
on 7 Nov 2016
Cases 5 and 7 are identical, and I believe they are both wrong. 5 x 142857 = 714285. Isn't this a parasitic number? What am I missing?
Jan Orwat
on 8 Nov 2016
There is 4, not 5
JD
on 8 Nov 2016
I mis-typed. 4 x 142857 = 571428, which is a shift right of 2. Incidentally, both n = 4 and 5 both make parasitic pairs with 142857.
Jan Orwat
on 8 Nov 2016
Thus it is not a 4-parasitic number. It doesn't meet the definition. Nevertheless is a great example of a cyclic number. You can get different cyclic permutations when multiply 142857 by 1, 2, 3, 4, 5 and 6. For 5 you got shift by one digit, therefore it's 5-parasitic.
JD
on 9 Nov 2016
Ahhh, I see! Thanks, Jan - I get it now!
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!