OFFSET
0,2
COMMENTS
The first occurrence of n in A136107
EXAMPLE
a(0)=1 because there are no two positive triangular numbers whose difference is 1,
a(1)=2 because 3-1 = 2,
a(2)=5 because 6-1 = 15-10 = 5,
a(3)=9 because 10-1 = 15-6 = 45-36 = 9, etc.
MATHEMATICA
f[n_] := f[n] = Block[{c = 0, k = 1}, While[k < n, If[IntegerQ[Sqrt[8 n + 4 k (k + 1) + 1]], c++ ]; k++ ]; c]; Table[ Position[ Table[ f@i, {i, 54000}], n, 1, 1], {n, 0, 30}] // Flatten
CROSSREFS
KEYWORD
nonn
AUTHOR
John W. Layman and Robert G. Wilson v, Dec 12 2007
EXTENSIONS
6 new terms from Donovan Johnson, Jan 21 2009
a(37) from Max Alekseyev, May 13 2009
STATUS
approved