OFFSET
1,2
EXAMPLE
There is one even integer between the two 1s: this is the integer 2;
there are two even integers between the two 2s: they are 4 and 6;
there are three even integers between the two 3s: they are 4, 6 and 2; etc.
MATHEMATICA
lst={1}; k=2;
Do[While[FreeQ[lst, k]&&Count[lst[[First@@Position[lst, t]+1;; ]], a_/; EvenQ@a]!=t, AppendTo[lst, k]; k++]; lst=AppendTo[lst, t], {t, 25}]; lst (* Giorgos Kalogeropoulos, Feb 28 2023 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Eric Angelini, Feb 12 2023
EXTENSIONS
More terms from Jinyuan Wang, Feb 14 2023
STATUS
approved