OFFSET
0,11
LINKS
Alois P. Heinz, Table of n, a(n) for n = 0..10000
FORMULA
G.f.: A(x) = sum(1/product(1 - x^c(i))), i >=1, where c(i) are the non-Fibonacci numbers.
EXAMPLE
a(15) counts these partitions: [15], [11,4], [9,6], [7,4,4]; a(16) counts these: [16], [12,4], [10,6], [9,7], [6,6,4], [4,4,4,4].
MAPLE
a:= proc(n) option remember; `if`(n=0, 1, add(add(
`if`((f-> issqr(f+4) or issqr(f-4))(5*d^2), 0, d),
d=numtheory[divisors](j))*a(n-j), j=1..n)/n)
end:
seq(a(n), n=0..100); # Alois P. Heinz, Mar 31 2017
MATHEMATICA
p[n_] := IntegerPartitions[n, All, Complement[Range@n, Fibonacci@Range@15]]; Table[p[n], {n, 0, 20}] (* shows partitions *)
a[n_] := Length@p@n; a /@ Range[0, 80] (* counts partitions *)
(* Second program: *)
a[n_] := a[n] = If[n == 0, 1, Sum[Sum[
If[Function[f, IntegerQ@Sqrt[f+4] || IntegerQ@Sqrt[f-4]][5*d^2], 0, d],
{d, Divisors[j]}]*a[n - j], {j, 1, n}]/n];
a /@ Range[0, 100] (* Jean-François Alcover, Jun 05 2021, after Alois P. Heinz *)
PROG
(PARI) N=66; q='q+O('q^N); Vec( prod(n=1, 11, 1-q^fibonacci(n+1))/eta(q) ) \\ Joerg Arndt, Mar 11 2014
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Clark Kimberling, Mar 08 2014
STATUS
approved