|
|
A070449
|
|
a(n) = n^2 mod 27.
|
|
2
|
|
|
0, 1, 4, 9, 16, 25, 9, 22, 10, 0, 19, 13, 9, 7, 7, 9, 13, 19, 0, 10, 22, 9, 25, 16, 9, 4, 1, 0, 1, 4, 9, 16, 25, 9, 22, 10, 0, 19, 13, 9, 7, 7, 9, 13, 19, 0, 10, 22, 9, 25, 16, 9, 4, 1, 0, 1, 4, 9, 16, 25, 9, 22, 10, 0, 19, 13, 9, 7, 7, 9, 13, 19, 0, 10, 22, 9, 25, 16, 9, 4, 1, 0, 1, 4, 9, 16
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
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, 0, 0, 0, 1).
|
|
FORMULA
|
G.f.:(x + 4*x^2 + 9*x^3 + 16*x^4 + 25*x^5 + 9*x^6 + 22*x^7 + 10*x^8 + 19*x^10 + 13*x^11 + 9*x^12 + 7*x^13 + 7*x^14 + 9*x^15 + 13*x^16 + 19*x^17 + 10*x^19 + 22*x^20 + 9*x^21 + 25*x^22 + 16*x^23 + 9*x^24 + 4*x^25 + x^26)/(1 - x^27). - Vincenzo Librandi, Mar 25 2016
|
|
MATHEMATICA
|
PowerMod[Range[0, 100], 2, 27] (* or *) PadRight[{}, 100, {0, 1, 4, 9, 16, 25, 9, 22, 10, 0, 19, 13, 9, 7, 7, 9, 13, 19, 0, 10, 22, 9, 25, 16, 9, 4, 1}] (* Harvey P. Dale, Dec 17 2023 *)
|
|
PROG
|
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,easy
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|