OFFSET
0,3
LINKS
A. V. Shutov, The number of words of a given length in the planar crystallographic groups, (in Russian), Zap. Nauchn. Sem. S.-Peterburg. Otdel. Mat. Inst. Steklov. (POMI), Vol. 302 (2003), Anal. Teor. Chisel i Teor. Funkts. 19, pp. 188-197, 203; translation, in J. Math. Sci. (N.Y.), Vol. 129, No. 3 (2005), pp. 3922-3926 [MR2023041]. See Table 1, line "p31m".
FORMULA
Sum_{n>=1} (-1)^(n+1)/a(n) = log(108)/6 = log(2)/3 + log(3)/2. - Amiram Eldar, Dec 31 2021
MAPLE
f:= proc(n) if n=0 then 1
elif (n mod 4) = 0 then (3*n)/2
elif (n mod 4) = 1 then (3*n-1)/2
elif (n mod 4) = 2 then (3*n)/2
else (3*n+1)/2 fi;
end;
s1 := [seq(f(n), n=0..70)];
MATHEMATICA
Join[{1}, Select[Range[100], MemberQ[{0, 1, 3, 5}, Mod[#, 6]] &]] (* Amiram Eldar, Dec 31 2021 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Mar 30 2018
STATUS
approved