A321612 Numbers k such that all k - t are triangular numbers where t is a triangular number in range k/2 <= t < k.
2, 4, 6, 7, 9, 13, 16, 21, 31
Offset: 1
Examples
a(9) = 31, because the triangular numbers in the range 16 <= p < 31 are {21}. Also the complementary set {10} has all its members triangular numbers. This is the 9th occurrence of such a number.
Links
- Mehdi Hage-Hassan, An elementary introduction to Quantum mechanic, hal-00879586 2013 pp 58.
Programs
-
Mathematica
TriangularQ[n_] := Module[{m=0}, While[n>m(m+1)/2, m++]; If[n==m(m+1)/2, True, False]]; plst[n_] := Select[Range[Ceiling[n/2], n-1], TriangularQ]; lst={}; Do[If[plst[n]!={}&&AllTrue[n-plst[n], TriangularQ], AppendTo[lst, n]], {n, 1, 200}]; lst
Comments