OFFSET
1,2
COMMENTS
Let R(n) = n-th term of Recamán's sequence (A005132). R(n) can be relatively small when R(n) is close to (but greater than) a multiple of n; that is, (R(n) mod n) is small. The sequence (R(n) mod n) (A065052) is generally nonincreasing until it wraps around to a value close to n. This sequence gives the minimum value of R(n) in each interval between wraparounds; that is, between terms where (R(n) mod n) increases.
These are the points that terminate each downward arc seen in the graph of A005132, and are the places where the Recamán sequence has the best chance of filling in a small missing number. The record values in A064228 (except the initial 0) will appear in this sequence.
A393815 gives corresponding indices.
LINKS
Benjamin Chaffin, Table of n, a(n) for n = 1..5104
EXAMPLE
The sixth interval of decreasing values for (R(n) mod n) is between R(22)=41 (41 mod 22 = 19) and R(39)=78 (78 mod 39 = 0). In this interval, the minimum value of R(n) is R(31)=14. Thus a(6) = 14.
CROSSREFS
KEYWORD
nonn
AUTHOR
Benjamin Chaffin, Feb 28 2026
STATUS
approved
