login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A305235
Smallest positive number k such that there are exactly n successive equal values of A001221 starting at k, i.e., such that A305234(k) = n.
1
1, 4, 3, 2, 54, 91, 142, 141, 44360, 48919, 218972, 526097, 526096, 526095, 17233173, 127890362
OFFSET
0,2
EXAMPLE
For n = 5: A001221(91+k) = 2 for k = 0..5 and 91 is the smallest number x with exactly 5 successors that have the same value of A001221 as x, so a(5) = 91.
PROG
(PARI) a305234(n) = my(k=n+1, i=0); while(omega(k)==omega(n), i++; k++); i
a(n) = my(k=1); while(1, if(a305234(k)==n, return(k)); k++)
KEYWORD
nonn,more
AUTHOR
Felix Fröhlich, May 28 2018
STATUS
approved