OFFSET
1,1
COMMENTS
mod(a(n),n):0,0,2,3,2,4,2,4,8,5,2,7,2,10,1,10,2,1,2,3,17,2,2,10,22,13,26,24,2, ...,.
The sum of just the even terms of T(n,k): 0,2,0,22,0,290,0,144,0,900,0,2288,0,1606,332,4124,0,1708,0,7908,790,10940,0,8196,0,24168,0,6920,0, ...,.
FORMULA
Sum_{m=0..k} from T(n, m), k is the least k>0 such that T(n, m)=1.
Sum_{m=0..A112283(n)} T(n, m).
a(p)=p(p-1)+2.
MATHEMATICA
f[n_] := Module[{j = 1, a}, a[0] = 1; a[l_] := a[l] = Block[{k = 1, s = Sum[a[i]*x^i, {i, 0, l - 1}]}, While[ IntegerQ[ Last[ CoefficientList[ Series[(s + k*x^l)^(1/n), {x, 0, l}], x]]] != True, k++ ]; k]; While[a[j] != 1, j++ ]; Sum[ a[i], {i, 0, j}]]; Do[ Print[ f[n]], {n, 29}]
CROSSREFS
KEYWORD
nonn
AUTHOR
Paul D. Hanna and Robert G. Wilson v, Aug 29 2005
EXTENSIONS
More terms from Robert G. Wilson v, Jul 25 2008
STATUS
approved