For a prime number p 1 = 3 and for square p 1 2 = 9 , the length of the period of the fraction L ( 3 1 ) = L ( 9 1 ) = 1 .
Find another minimal prime number p 2 > 3 for which L ( p 2 1 ) = L ( p 2 2 1 ) .
Give answer p 2 .
We exclude prime number equal 2 and prime number equal 5 that the period length there is equal to zero.
Problem from "Kvant" - Soviet and Russian popular scientific physics and mathematics journal for schoolchildren and students. There is the sequence A002371 .
Bonus. Open question - How many such numbers exist? It is very difficult to find p 3 , p 4 , . . . - for example p 3 > 5 6 0 0 0 0 0 0 .
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
output:
per(1/2)=0; per(1/4)=0
per(1/3)=1; per(1/9)=1
per(1/5)=0; per(1/25)=0
per(1/487)=486; per(1/237169)=486
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
|
Thanks for attention.
Problem Loading...
Note Loading...
Set Loading...
I also use python for solution. And I try to find p 3 - but it very big time. Here A045616 there is the result for p 3 .