OFFSET
1,2
LINKS
Jaegug Bae and Sungjin Choi, A generalization of a subset-sum-distinct sequence, J. Korean Math. Soc. 40 (2003), no. 5, 757--768. MR1996839 (2004d:05198). See b(n).
FORMULA
Bae and Choi define this sequence via a collection of recurrences.
MAPLE
b := proc(n)
round(sqrt(2*n-2)) ;
end proc:
d := proc(k, n)
option remember;
if n = 1 then
1;
else
add( k*procname(k, i), i=n-b(n)..n-1 ) ;
end if;
end proc:
A225178 := proc(n)
d(2, n) ;
end proc: # R. J. Mathar, Jul 09 2013
MATHEMATICA
b[n_] := Round[Sqrt[2n-2]];
d[k_, n_] := d[k, n] = If[n == 1, 1, Sum[k*d[k, i], {i, n-b[n], n-1}]];
a[n_] := d[2, n];
Table[a[n], {n, 1, 27}] (* Jean-François Alcover, Feb 27 2024, after R. J. Mathar *)
CROSSREFS
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, May 02 2013
STATUS
approved