OFFSET
1,2
COMMENTS
A permutation of the positive integers (or of the nonnegative integers, if prefixed by a(0) = 0). It seems that all the odd numbers occur in order at indices A184119 and the even numbers occur in order at indices A136119, except for the initial 1 and 2. - M. F. Hasler, Jul 04 2022
LINKS
EXAMPLE
The distance between a(3) = 4 and a(9) = 5 is |3 - 9| = 6, which is >= 4.
PROG
(PARI) {A355506_first(N, U=1/*starting value*/, A=Map())=vector(N, n, my(k=U); while(mapisdefined(A, k) || iferr(n < mapget(A, k-1)+k-1 || n<mapget(A, k+1)+k, E, ), k++); mapput(A, k, n); k==U && until(!mapisdefined(A, U), U>2 && mapdelete(A, U-2); U++); k)} \\ M. F. Hasler, Jul 05 2022
CROSSREFS
KEYWORD
nonn
AUTHOR
Ali Sada, Jul 04 2022
EXTENSIONS
More terms from M. F. Hasler, Jul 04 2022
STATUS
approved