login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A156637
Pell numbers A000129 mod 9. Period 24: repeat 0,1,2,5,3,2,7,7,3,4,2,8,0,8,7,4,6,7,2,2,6,5,7,1.
0
0, 1, 2, 5, 3, 2, 7, 7, 3, 4, 2, 8, 0, 8, 7, 4, 6, 7, 2, 2, 6, 5, 7, 1, 0, 1, 2, 5, 3, 2, 7, 7, 3, 4, 2, 8, 0, 8, 7, 4, 6, 7, 2, 2, 6, 5, 7, 1, 0, 1, 2, 5, 3, 2, 7, 7, 3, 4, 2, 8, 0, 8, 7, 4, 6, 7, 2, 2, 6, 5, 7, 1, 0, 1, 2, 5, 3, 2, 7, 7, 3, 4, 2, 8, 0, 8, 7, 4, 6, 7, 2, 2, 6, 5, 7, 1
OFFSET
0,3
LINKS
Index entries for linear recurrences with constant coefficients, signature (0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1).
MATHEMATICA
PadRight[{}, 120, {0, 1, 2, 5, 3, 2, 7, 7, 3, 4, 2, 8, 0, 8, 7, 4, 6, 7, 2, 2, 6, 5, 7, 1}] (* Harvey P. Dale, Apr 09 2018 *)
PROG
(PARI) a(n)=imag((1+quadgen(8))^n)%9 \\ Charles R Greathouse IV, Jul 13 2016
CROSSREFS
Sequence in context: A130848 A222760 A302130 * A195784 A279623 A287040
KEYWORD
nonn,easy
AUTHOR
Paul Curtz, Feb 12 2009
EXTENSIONS
Edited by N. J. A. Sloane, Feb 14 2009
STATUS
approved