OFFSET
1,1
LINKS
J. S. Myers, R. Schroeppel, S. R. Shannon, N. J. A. Sloane, and P. Zimmermann, Three Cousins of Recaman's Sequence, arXiv:2004:14000 [math.NT], April 2020.
EXAMPLE
The first few triples are:
2, 2, 3
3, 5, 6
4, 9, 10
5, 3, 6
5, 6, 8
5, 14, 15
6, 5, 8
6, 9, 11
6, 20, 21
7, 27, 28
8, 10, 13
8, 35, 36
9, 4, 10
9, 6, 11
9, 13, 16
9, 21, 23
9, 44, 45
10, 8, 13
10, 26, 28
10, 54, 55
11, 14, 18
11, 20, 23
11, 65, 66
12, 17, 21
12, 24, 27
12, 77, 78
...
MAPLE
# This program produces the triples for each value of n, but then they need to be sorted on k:
with(numtheory):
A:=[]; M:=100;
for n from 1 to M do
TT:=n*(n+1);
dlis:=divisors(TT);
for d in dlis do
if (d mod 2) = 1 then e := TT/d;
mi:=min(d, e); ma:=max(d, e);
k:=(ma-mi-1)/2;
m:=(ma+mi-1)/2;
# skip if k=0
if k>0 then
lprint(n, k, m);
fi;
fi;
od:
od:
CROSSREFS
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Apr 01 2020
STATUS
approved