A221583 A sum over partitions (q=18), see first comment.
1, 17, 323, 5814, 104958, 1889227, 34011900, 612213877, 11019954438, 198359179578, 3570467115834, 64268408079198, 1156831379431973, 20822964829665048, 374813367546080412, 6746640615829343087, 121439531095946141922, 2185911559727028566514
Offset: 0
Keywords
Links
- Alois P. Heinz, Table of n, a(n) for n = 0..300
Programs
-
Maple
with(numtheory): b:= proc(n) b(n):= add(phi(d)*18^(n/d), d=divisors(n))/n-1 end: a:= proc(n) a(n):= `if`(n=0, 1, add(add(d*b(d), d=divisors(j)) *a(n-j), j=1..n)/n) end: seq(a(n), n=0..30); # Alois P. Heinz, Feb 03 2013
-
Mathematica
b[n_] := Sum[EulerPhi[d]*18^(n/d), {d, Divisors[n]}]/n-1; a[n_] := a[n] = If[n == 0, 1, Sum[Sum[d*b[d], {d, Divisors[j]}]*a[n-j], {j, 1, n}]/n]; Table[a[n], {n, 0, 30}] (* Jean-François Alcover, Feb 17 2014, after Alois P. Heinz *)
-
PARI
N=66; x='x+O('x^N); gf=prod(n=1,N, (1-x^n)/(1-18*x^n) ); v=Vec(gf)
Comments