OFFSET
1,12
LINKS
Antti Karttunen, Table of n, a(n) for n = 1..20000
David A. Corneth & Antti Karttunen, PARI program
PROG
(PARI)
\\ This is for computing a small number of terms:
nonprimepower_divisors_with1_reversed(n) = vecsort(select(d -> ((1==d) || !isprimepower(d)), divisors(n)), , 4);
partitions_into_with_trailing_ones(n, parts, from=1) = if(!n, 1, if(#parts<=(from+1), if(#parts == from, 1, (1+(n\parts[from]))), my(s=0); for(i=from, #parts, if(parts[i]<=n, s += partitions_into_with_trailing_ones(n-parts[i], parts, i))); (s)));
A014649(n) = partitions_into_with_trailing_ones(n-1, nonprimepower_divisors_with1_reversed(n)); \\ Antti Karttunen, Aug 23 2019
(PARI) \\ For an efficient program to compute large numbers of terms, see PARI program included in the Links-section.
CROSSREFS
KEYWORD
nonn
AUTHOR
STATUS
approved