OFFSET
1,1
COMMENTS
a(n) is the unique positive integer less than 10^n such that 7a(n) - 1 is divisible by 10^n. - Eric M. Schmidt, Aug 18 2012
LINKS
Eric M. Schmidt, Table of n, a(n) for n = 1..1000
Eric Weisstein's World of Mathematics, Automorphic Number.
Index entries for linear recurrences with constant coefficients, signature (11,-10,-1000,11000,-10000).
FORMULA
From Elmo R. Oliveira, Apr 12 2026: (Start)
a(n) = 11*a(n-1) - 10*a(n-2) - 1000*a(n-3) + 11000*a(n-4) - 10000*a(n-5) for n > 5.
G.f.: x * (3+10*x-300*x^2+9000*x^3-10000*x^4) / ((1-x) * (1-10*x) * (1+1000*x^3)). (End)
MATHEMATICA
LinearRecurrence[{11, -10, -1000, 11000, -10000}, {3, 43, 143, 7143, 57143}, 20] (* Harvey P. Dale, Apr 02 2018 *)
PROG
(SageMath) [inverse_mod(7, 10^n) for n in range(1, 1001)] # Eric M. Schmidt, Aug 18 2012
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
STATUS
approved
