|
|
A205007
|
|
a(n) = (1/n)*A205006(n), where A205006(n) = s(k)-s(j), with (s(k),s(j)) the least pair of distinct triangular numbers for which n divides their difference.
|
|
6
|
|
|
2, 1, 1, 1, 1, 2, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,1
|
|
COMMENTS
|
For a guide to related sequences, see A204892.
|
|
LINKS
|
|
|
MATHEMATICA
|
|
|
PROG
|
(PARI) A205007(n) = for(k=2, oo, my(sk=binomial(k+1, 2)); for(j=1, k-1, if(!((sk-binomial(j+1, 2))%n), return((sk-binomial(j+1, 2))/n)))); \\ Antti Karttunen, Sep 27 2018
|
|
CROSSREFS
|
Cf. A318894 (gives the positions terms larger than one).
|
|
KEYWORD
|
nonn
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|