OFFSET
1,2
REFERENCES
Posting by Eric Angelini to Sequence Fans Mailing List, Sep 21 2010
LINKS
Alois P. Heinz, Table of n, a(n) for n = 1..10000
EXAMPLE
1+2 divides 12 -> 12/3=4
2+4 divides 24 -> 24/6=4
4+5 divides 45 -> 45/9=5
5+10 divides 510 -> 510/15=34
10+8 divides 108 -> 108/18=6
8+14 divides 814 -> 814/22=37
...
MAPLE
ina:= proc() false end:
ina(1):= true: mina:= 2;
a:= proc(n) option remember; global mina; local k;
if n=1 then 1
else for k from mina while ina(k) or
irem(parse(cat(a(n-1), k)), a(n-1)+k)<>0 do od;
ina(k):= true; while ina(mina) do mina:= mina+1 od;
k
fi
end:
seq(a(n), n=1..70); # Alois P. Heinz, Sep 30 2011
CROSSREFS
KEYWORD
nonn,base
AUTHOR
N. J. A. Sloane, Nov 24 2010
EXTENSIONS
Corrected and extended by Alois P. Heinz, Sep 30 2011
STATUS
approved