OFFSET
1,4
COMMENTS
All terms are positive integers (for a proof, cf. comment in A293984).
Note that a(1), a(2), a(3), a(4) remain the same, if in the definition the pentagonal numbers are replaced by k-gonal numbers for k >= 3 other than k=4.
LINKS
Peter J. C. Moses, Table of n, a(n) for n = 1..200
MATHEMATICA
polyQ[order_, n_]:=If[n==0, True, IntegerQ[(#-4+Sqrt[(#-4)^2+8 n (#-2)])/(2 (#-2))]&[order]]; (*is a number polygonal?*)
Map[Total, Table[
possibleSums=Range[1/2-(-1)^n/2-Floor[n/2]^2, Floor[(n+1)/2]^2];
filteredSums=Select[possibleSums, polyQ[5, #]&&#>-1&];
positions=Map[Flatten[{#, Position[possibleSums, #, 1]-1}]&, filteredSums];
Map[SeriesCoefficient[QBinomial[n, Floor[(n+1)/2], q], {q, 0, #[[2]]/2}]&, positions], {n, 25}]] (* Peter J. C. Moses, Jan 02 2018 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Vladimir Shevelev and Peter J. C. Moses, Nov 09 2017
STATUS
approved