OFFSET
1,2
LINKS
David A. Corneth, Table of n, a(n) for n = 1..200 (first 100 terms from Andrew Howroyd)
MATHEMATICA
is[n_] := n/2^IntegerExponent[n, 2]/3^IntegerExponent[n, 3] == 1;
MkS[n_] := Module[{A = {}, i = 0}, While[Length[A] < n, i++; If[is[i], AppendTo[A, i]]]; A];
seq[n_] := Module[{A = MkS[n], p}, p = 1/Product[1 - x^A[[i]] + O[x]^(1 + A[[Length[A]]]), {i, Length[A]}] // Normal; Table[Coefficient[p, x, A[[i]]], {i, Length[A]}]];
seq[33] (* Jean-François Alcover, Oct 13 2021, after Andrew Howroyd *)
PROG
(PARI) \\ here is(n) is test for A003586 inclusion.
is(n)={forprime(p=2, 3, n/=p^valuation(n, p)); n==1}
MkS(n)={my(A=List(), i=0); while(#A<n, i++; if(is(i), listput(A, i))); Vec(A)}
seq(n)={my(A=MkS(n), p=1/prod(i=1, #A, 1 - x^A[i] + O(x*x^A[#A]))); vector(#A, i, polcoef(p, A[i]))} \\ Andrew Howroyd, Jan 02 2020
CROSSREFS
KEYWORD
nonn
AUTHOR
Reinhard Zumkeller, Mar 04 2006
EXTENSIONS
Terms a(23) and beyond from Andrew Howroyd, Jan 02 2020
STATUS
approved