OFFSET
1,1
COMMENTS
Called "peloton" numbers after the original sequence idea in first link: the difference of a rhombus (a square number) and a triangular number, placed as points on a triangular grid, form the shape of a peloton in bicycle racing.
Contains all elements of A001110 other than 0 and 1.
LINKS
Eric Snyder, Table of n, a(n) for n = 1..10000
Zach Wissner-Gross, Can You Shape the Peloton?, Fiddler on the Proof, Sep 22, 2023.
EXAMPLE
15 can be obtained as T(4,1) or T(5,4) following notation in A365904.
36 can be obtained as T(6,0) or T(8,7).
PROG
(PARI) isok(n) = sum(m=sqrtint(n), (sqrtint(8*n+1)-1)\2, ispolygonal(m^2-n, 3)) > 1 \\ Andrew Howroyd, Sep 24 2023
(Python/SageMath)
nmax, m, Out = 300, 2, []
Z = [ n^2 - (k^2 + k)/2 for n in [2..nmax] for k in [0..n-1] ]
for i in Z:
if Z.count(i) >= m: Out.append(i)
Out=sorted(list(set(Out)))
for j in [1..10000]: print(j+1, Out[j])
\\ Eric Snyder, Sep 29 2023
CROSSREFS
KEYWORD
nonn
AUTHOR
Joan Llobera Querol, Sep 22 2023
STATUS
approved