login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A348529 Number of compositions (ordered partitions) of n into two or more triangular numbers. 2
0, 0, 1, 1, 3, 4, 6, 11, 16, 25, 39, 61, 94, 147, 227, 350, 546, 846, 1309, 2030, 3147, 4875, 7558, 11715, 18154, 28136, 43609, 67586, 104747, 162346, 251610, 389958, 604381, 936699, 1451743, 2249991, 3487152, 5404570, 8376292, 12982016, 20120202, 31183350, 48329596, 74903735 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,5
LINKS
FORMULA
a(n) = A023361(n) - A010054(n). - Alois P. Heinz, Oct 21 2021
MAPLE
b:= proc(n) option remember; `if`(n=0, 1, add(
`if`(issqr(8*j+1), b(n-j), 0), j=1..n))
end:
a:= n-> b(n)-`if`(issqr(8*n+1), 1, 0):
seq(a(n), n=0..43); # Alois P. Heinz, Oct 21 2021
MATHEMATICA
b[n_] := b[n] = If[n == 0, 1, Sum[
If[IntegerQ@ Sqrt[8*j + 1], b[n - j], 0], {j, 1, n}]];
a[n_] := b[n] - If[IntegerQ@ Sqrt[8*n + 1], 1, 0];
Table[a[n], {n, 0, 43}] (* Jean-François Alcover, Mar 01 2022, after Alois P. Heinz *)
CROSSREFS
Sequence in context: A230430 A154331 A001130 * A069825 A093040 A022935
KEYWORD
nonn
AUTHOR
Ilya Gutkovskiy, Oct 21 2021
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 25 01:35 EDT 2024. Contains 371964 sequences. (Running on oeis4.)