OFFSET
0,2
COMMENTS
The 6-digit cycle 1,0,2,5,6,4 in this sequence and the others based on thirty-ninths, gives the successive digits of the smallest integer which is multiplied by four when the final digit is moved from the right hand end to the left hand end. - Ian Duff, Jan 09 2009
LINKS
Index entries for periodic sequences, period 6.
Index entries for linear recurrences with constant coefficients, signature (2, -2, 1).
EXAMPLE
0.02564102564102564102564102564102564102564102564102564102564102564102564102....
MAPLE
evalf(1/39, 100); # Wesley Ivan Hurt, Jan 29 2017
MATHEMATICA
Join[{0}, RealDigits[1/39, 10, 120][[1]]] (* or *) PadRight[{}, 120, {0, 2, 5, 6, 4, 1}] (* Harvey P. Dale, Nov 17 2013 *)
PROG
(PARI) a(n)=28728\7^(n%6)%7 \\ Charles R Greathouse IV, Jun 01 2026
CROSSREFS
KEYWORD
AUTHOR
STATUS
approved
