OFFSET
1,1
COMMENTS
Subtracting 1 from k gives the index of a term A005132(k-1) = k in Recamán's sequence A005132 such that subtracting k would reach 0. This is not permitted, so we must add k instead, obtaining A005132(k) = 2*k.
If A005132(k-1) = k, A005132(k) = 2*k. The converse is not always true. For example, A005132(75) = 228 and A005132(76) = 228 - 76 = 152. - Seiichi Manyama, May 02 2020
PROG
CROSSREFS
KEYWORD
nonn,more
AUTHOR
N. J. A. Sloane, May 01 2020
EXTENSIONS
a(8) from Chai Wah Wu, May 02 2020
STATUS
approved