OFFSET
1,2
COMMENTS
The one-part partition n = n is included in the count.
FORMULA
a(n) = n*A334461(n).
EXAMPLE
For n = 28 there are three partitions of 28 into consecutive parts that differ by 4, including 28 as a valid partition. They are [28], [16, 12] and [13, 9, 5, 1]. The sum of the parts is [28] + [16 + 12] + [13 + 9 + 5 + 1] = 84, so a(28) = 84.
MATHEMATICA
pn4[n_]:=Total[Flatten[Select[IntegerPartitions[n], Union[Abs[Differences[#]]]=={4}&]]]+n; Array[pn4, 70] (* Harvey P. Dale, Nov 26 2023 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Omar E. Pol, Apr 30 2020
STATUS
approved