login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A276553 Numbers n such that n^2 and (n + 1)^2 have the same number of divisors. 3

%I #38 May 08 2021 23:05:18

%S 2,14,15,21,33,34,38,44,57,75,81,85,86,93,94,98,116,118,122,133,135,

%T 141,142,145,147,158,171,177,201,202,205,213,214,217,218,230,244,253,

%U 272,285,296,298,301,302,326,332,334,375,381,387,393,394,405,429,434,445

%N Numbers n such that n^2 and (n + 1)^2 have the same number of divisors.

%C Except for a(1), all the terms are composite.

%H Antti Karttunen, <a href="/A276553/b276553.txt">Table of n, a(n) for n = 1..10000</a>

%e We see that 14^2 = 196, the divisors of which are 1, 2, 4, 7, 14, 28, 49, 98, 196, and there are nine of them. And we see that 15^2 = 225, the divisors of which are 1, 3, 5, 9, 15, 25, 45, 75, 225, and there are nine of them. Both 14^2 and 15^2 have the same number of divisors, hence 14 is in the sequence.

%e And we see that 16^2 = 256, the divisors of which are the powers of 2 from 2^0 to 2^8, that's nine divisors. Both 15^2 and 16^2 have the same number of divisors, hence 15 is also in the sequence.

%e But 16 is not in the sequence, since 17 is prime and 17^2 consequently only has three divisors.

%p N:= 1000: # to get all terms <= N

%p T:= map(t -> numtheory:-tau(t^2), [$1..N+1]):

%p select(t -> T[t]=T[t+1], [$1..N]); # _Robert Israel_, Apr 10 2017

%t Select[Range[1000], DivisorSigma[0, #^2] == DivisorSigma[0, (# + 1)^2] &]

%o (PARI) k=[]; for(n=1, 1000, a=numdiv(n^2); b=numdiv((n+1)^2); if(a==b, k=concat(k, n))); k

%o (Python)

%o from sympy.ntheory import divisor_count

%o print([n for n in range(1, 501) if divisor_count(n**2) == divisor_count((n + 1)**2)]) # _Indranil Ghosh_, Apr 10 2017

%o (Scheme, with Antti Karttunen's IntSeq-library) (define A276553 (ZERO-POS 1 1 A284570)) ;; _Antti Karttunen_, Apr 15 2017

%Y Cf. A000290, A048691, A062832, A276542, A284378.

%Y Cf. A052213 (a subsequence).

%Y Positions of zeros in A284570.

%K nonn

%O 1,1

%A _K. D. Bajpai_, Apr 10 2017

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 18 20:18 EDT 2024. Contains 371781 sequences. (Running on oeis4.)