OFFSET
1,2
COMMENTS
60933 is the 7961st & 7962rd term, although I have tested this sequence out to the 3553000th term using Do[ a[n + 1]; If[ a[n] == a[n + 1], Print[ a[n]]]; a[n - 3] =., {n, 2, 3553000}] and have found no more terms. - Robert G. Wilson v
a(999999) = 11623184, a(10^6) = 11598589, a(1000001) = 11595285.
MATHEMATICA
a[0] = a[1] = a[2] = 1; a[n_] := a[n] = Abs[ Prime[n] - a[n - 1]] + Abs[ Prime[n] - a[n - 2]] + Abs[ Prime[n] - a[n - 3]]; b = Table[ a[n], {n, 1, 10^4}]; b[[ Select[ Range[10^4], b[[ # ]] - b[[ # - 1]] == 0 & ]]]
CROSSREFS
KEYWORD
nonn
AUTHOR
Roger L. Bagula, Sep 26 2003
EXTENSIONS
Edited and extended by Robert G. Wilson v and Ray Chandler, Sep 26 2003
STATUS
approved