OFFSET
1,2
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
Index entries for linear recurrences with constant coefficients, signature (1,0,0,0,0,0,0,0,0,1,-1).
FORMULA
From Mike Sheppard, Feb 19 2025: (Start)
a(n) = a(n-1) + a(n-10) - a(n-11).
a(n) = a(n-10) + 11^2.
a(n) ~ (11^2/10)*n. (End)
MATHEMATICA
Select[ Range[ 800 ], PowerMod[ #, 10, 121 ]==1& ]
LinearRecurrence[{1, 0, 0, 0, 0, 0, 0, 0, 0, 1, -1}, {1, 3, 9, 27, 40, 81, 94, 112, 118, 120, 122}, 65] (* Mike Sheppard, Feb 19 2025 *)
PROG
(PARI) a(n)=1+((n-1)\10)*121+[0, 2, 8, 26, 39, 80, 93, 111, 117, 119][(n-1)%10+1] \\ Charles R Greathouse IV, Apr 29 2026
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Robert G. Wilson v, Jun 08 2000
STATUS
approved
