OFFSET
1,3
COMMENTS
The first differences are 1 and 2 strictly alternately, except near powers of 2: a(2^k+2)-a(2^k+1) = a(2^k+1)-a(2^k). Cf. A001651 which is generated by the same rule if we start from 1, 2 and has first differences 1, 2, 1, 2... with no exceptions. - Andrey Zabolotskiy, Feb 11 2021
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
MAPLE
A[1]:= 1: A[2]:= 1: forbid:= {2}:
for n from 3 to 100 do
for k from A[n-1]+1 while member(k, forbid) do od:
A[n]:= k;
forbid:= forbid union {A[n-1]+k};
od:
seq(A[i], i=1..100); # Robert Israel, Nov 29 2017
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Gaetan Polard (gaetan27(AT)hotmail.com), Nov 18 2004
STATUS
approved