OFFSET
1,3
LINKS
Michael De Vlieger, Table of n, a(n) for n = 1..11325 (rows 1 <= n <= 150, flattened)
EXAMPLE
1
1 3
1 4 16
1 3 9 27
1 6 36 216 1296
1 5 25 125 625 3125
...
MAPLE
A112668 := proc(n) local a2, i, a ; a2 := 2 ; while (1-a2^n)/(1-a2) mod n <> 0 do a2 := a2+1 ; od ; a := [] ; for i from 1 to n do a := [op(a), a2^(i-1)] ; od ; RETURN(a) ; end: for row from 1 to 14 do r := A112668(row) : for n from 1 to nops(r) do printf("%d, ", op(n, r)) ; od : od : # R. J. Mathar, Mar 13 2007
MATHEMATICA
Block[{a = {{1}}, k, s}, Do[k = 2; While[Mod[Total@ Set[s, NestList[# k &, 1, i - 1]], i] != 0, k++]; AppendTo[a, s], {i, 2, 10}]; a] // Flatten (* Michael De Vlieger, Dec 31 2020 *)
CROSSREFS
KEYWORD
AUTHOR
Amarnath Murthy, Aug 10 2005
EXTENSIONS
More terms from R. J. Mathar, Mar 13 2007
STATUS
approved