OFFSET
1,2
LINKS
Nathaniel Johnston, Table of n, a(n) for n = 1..10000
FORMULA
a(n) <= 3n-2, and there are infinitely many indices (namely, all those of the form n = a(k)+1 for some k) for which equality holds.
MAPLE
l:=[1, 4]:for n from 2 to 20 do for j from l[n-1]+1 to `if`(n=2, l[n]-1, l[n]) do l:=[op(l), max(3*l[n-1], op(l))+1]: od: od: l; # Nathaniel Johnston, Apr 27 2011
PROG
(PARI) a=vector(100, i, 1); i=v=1; for(k=2, #a, if(k>a[i], v=3*a[i]; i++); a[k]=v++)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
M. F. Hasler, Jul 16 2015
STATUS
approved
