1,2

Table of n, a(n) for n=1..87.

For n = 2: 3, 4 and 5 have the same number of distinct prime divisors as 2, but 6 does not, so a(2) = 3.

(PARI) a(n) = my(k=n+1, i=0); while(omega(k)==omega(n), i++; k++); i

Cf. A001221, A077655, A305235.

Sequence in context: A083199 A327187 A274537 * A021761 A221960 A171839

Adjacent sequences: A305231 A305232 A305233 * A305235 A305236 A305237

nonn

Felix FrÃ¶hlich, May 28 2018

approved