OFFSET
1,4
LINKS
Antti Karttunen, Table of n, a(n) for n = 1..12000
FORMULA
Has period 1, 2 except for a(2) = 1, a(12) = a(24) = a(60) = 3.
EXAMPLE
The groups are "nn", of order n; "22n", of order 2n; "332", "432", "532" of orders 12,24,60.
MATHEMATICA
a[2] = 1; a[12|24|60] = 3; a[n_] := 2-Mod[n, 2]; Array[a, 105] (* Jean-François Alcover, Nov 12 2015 *)
PROG
(PARI) a(n)=if(n==2||n==12||n==24||n==60, if(n>2, 3, 1), if(n%2, 1, 2)) \\ Charles R Greathouse IV, Nov 10 2015
CROSSREFS
KEYWORD
nonn,easy,nice
AUTHOR
EXTENSIONS
More terms from James A. Sellers and David W. Wilson, Dec 16 1999
STATUS
approved