OFFSET
1,2
COMMENTS
Numbers k such that k^2 == 1 (mod 3^3).
LINKS
FORMULA
a(n) = 27*(n-1)-a(n-1) with n>1, a(1) = 1. - Vincenzo Librandi, Aug 07 2010
G.f.: x*(1+25*x+x^2) / ( (1+x)*(x-1)^2 ). - R. J. Mathar, Jul 10 2015
Sum_{n>=1} (-1)^(n+1)/a(n) = cot(Pi/27)*Pi/27. - Amiram Eldar, Dec 31 2021
MATHEMATICA
x=3; Select[ Range[ 1000 ], PowerMod[ #, x-1, x^3 ]==1& ]
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Robert G. Wilson v, Jun 08 2000
EXTENSIONS
Definition rewritten by Bruno Berselli, Nov 19 2012
STATUS
approved