OFFSET
1,4
COMMENTS
Provided that A250474 is strictly increasing (implied for example if either Legendre's or Brocard's conjecture is true) then all natural numbers occur in this sequence, in order, and after three 1's, each n+1 appears for the first time at A250474(n). Thus from n=2 onward, each n occurs A251723(n-1) times.
LINKS
Antti Karttunen, Table of n, a(n) for n = 1..10351
FORMULA
Equally: a(1) = a(2) = a(3) = 1; and for n>=4: a(n) = the largest k such that A250474(k-1) <= n.
Other identities. For all n >= 1:
PROG
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen, Dec 15 2014
STATUS
approved