|
|
A333822
|
|
Number of ways to write n as the difference of two k-gonal numbers for k >= 3.
|
|
5
|
|
|
1, 3, 3, 5, 4, 6, 4, 8, 5, 7, 6, 8, 5, 10, 7, 9, 6, 8, 6, 13, 8, 8, 7, 12, 6, 12, 8, 10, 9, 10, 7, 13, 8, 12, 10, 13, 6, 13, 9, 12, 8, 10, 8, 17, 11, 10, 10, 14, 8, 16, 9, 10, 9, 14, 10, 19, 9, 8, 10, 14, 7, 16, 12, 19, 12, 12, 7, 14, 12, 12, 11, 14, 8
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
2,2
|
|
COMMENTS
|
Records occur at indices 2, 3, 5, 7, 9, 15, 21, 45, 57, 81, 105, 145, 217, 225, 385, 435, 441, 495, 561, 651, 705, 945, 1105, ... - Peter Kagey, Nov 18 2020
|
|
LINKS
|
|
|
FORMULA
|
G.f.: Sum_{m>=1} (-x + Sum_{k>=1} x^A139601(m-1,k)/(1 - x^(m*k))).
|
|
EXAMPLE
|
For n = 7, the a(7) = 6 ways to write 7 as the difference of k-gonal numbers are:
|
|
MATHEMATICA
|
b := 74
CoefficientList[
Series[Sum[
Sum[x^(k*(p*k - (p - 2))/2)/(1 - x^(p*k)), {k, 1, b}] - x, {p, 1,
b - 1}], {x, 0, b}], x]
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|