OFFSET
1,2
COMMENTS
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
EXAMPLE
5 and 6 have both two odd divisors: (1 and 5) and (1 and 3) respectively; so 5 is a term in the sequence.
MATHEMATICA
Select[Range@ 221, First@ Differences@ Map[Count[Divisors@ #, _?OddQ] &, {#, # + 1}] == 0 &] (* Michael De Vlieger, Jun 26 2016 *)
SequencePosition[Table[Count[Divisors[n], _?OddQ], {n, 250}], {x_, x_}] [[All, 1]] (* Requires Mathematica version 10 or later *) (* Harvey P. Dale, Apr 06 2019 *)
PROG
(PARI) lista(nn) = for (n=1, nn, if (sumdiv(n, d, d%2) == sumdiv(n+1, d, d%2), print1(n, ", "))); \\ Michel Marcus, May 27 2016
(PARI) is(n)=numdiv(n>>valuation(n, 2))==numdiv((n+1)>>valuation(n+1, 2)) \\ Charles R Greathouse IV, Jul 15 2016
CROSSREFS
KEYWORD
nonn
AUTHOR
Juri-Stepan Gerasimov, May 26 2016
STATUS
approved