OFFSET
0,1
LINKS
Index entries for periodic sequences, period 9.
Index entries for linear recurrences with constant coefficients, signature (0,0,0,0,0,0,0,0,1).
FORMULA
a(n) = 9*A154629(n).
a(n) = a(n-9).
MATHEMATICA
PadRight[{}, 120, {81, 27, 9, 27, 27, 9, 27, 81, 9}] (* Harvey P. Dale, Jun 27 2020 *)
PROG
(PARI) a(n)=193133139\10^(n%9)%10*9 \\ Charles R Greathouse IV, Jun 03 2026
(PARI) a(n)=9*[9, 3, 1, 3, 3, 1, 3, 9, 1][n%9+1] \\ Charles R Greathouse IV, Jun 03 2026
CROSSREFS
KEYWORD
nonn,less,easy
AUTHOR
Paul Curtz, Nov 10 2008
STATUS
approved
