OFFSET
0,2
PROG
(Magma) function a007294(n, k) return n gt k*(k+1)/2 select a007294(n-k*(k+1)/2, k) + a007294(n, k+1) else n eq k*(k+1)/2 select 1 else 0; end function; [ a007294(n, 1): n in [0..135 by 3] ]; // Klaus Brockhaus, Jan 23 2009
CROSSREFS
KEYWORD
nonn
AUTHOR
Randall L Rathbun, Aug 26 2002
EXTENSIONS
More terms from Klaus Brockhaus, Jan 23 2009
STATUS
approved