OFFSET
1,2
COMMENTS
31 is the first number to appear twice. This is a multi-set version of the Klarner-Rado sequence A002977.
20479 is the first number to appear three times. - Rémy Sigrist, Dec 19 2016
LINKS
Rémy Sigrist, Table of n, a(n) for n = 1..29993 [Terms up to 500000]
J. C. Lagarias, Erdős, Klarner and the 3x + 1 Problem, Amer. Math. Monthly 123 (No. 8, 2016), 753-776. See S# on page 756.
Rémy Sigrist, C99 program for A276786
MAPLE
KR:=proc(lis) local i, j, t1, t2, t3;
t1:=lis; t2:=nops(lis); t3:=[];
for i from 1 to t2 do j:=t1[i];
t3:=[op(t3), 2*j+1, 3*j+1]; od: sort(t3); end;
t:=[1]; b:=[1];
for n from 1 to 10 do
t:=KR(t); b:=[op(b), op(t)]; b:=sort(b);
od: b;
CROSSREFS
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Oct 06 2016
STATUS
approved