cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A120350 Refactorable numbers k such that the number of odd divisors and the number of even divisors of k are both divisors of k.

This page as a plain text file.
%I A120350 #14 Jan 15 2020 05:50:05
%S A120350 2,12,18,24,36,72,80,180,240,252,360,396,450,468,480,504,560,612,684,
%T A120350 720,792,828,880,882,896,936,972,1040,1044,1116,1200,1224,1250,1332,
%U A120350 1344,1360,1368,1440,1476,1520,1548,1620,1656,1692,1840,1908,1944,2000
%N A120350 Refactorable numbers k such that the number of odd divisors and the number of even divisors of k are both divisors of k.
%C A120350 Since s = 0 if k is odd, the number k is necessarily even and then the number of even divisors s is always a multiple of the number of odd divisors r. Note that t = r + s may not be a divisor even if both r and s are divisors. For example, if k = 144, then r = 3, s = 12, but t = r + s = 15.
%H A120350 Amiram Eldar, <a href="/A120350/b120350.txt">Table of n, a(n) for n = 1..10000</a>
%F A120350 a(n) = k is even, r = number of odd divisors of k, s = number of even divisors of k and t = r + s = number of divisors of k, are all divisors of k.
%e A120350 a(3) = 18 since r = 3, s = 3 and t = r + s = 6 are all divisors.
%p A120350 with(numtheory); A:=[]: for w to 1 do for k from 1 to 5000 do n:=2*k; S:=divisors(n); r:=nops( select(z->type(z,odd),S) ); s:=nops( select(z->type(z,even),S) ); t:=r+s; if andmap(z -> n mod z = 0, [r,s,t]) then A:=[op(A),n]; print(n,r,s,t); fi; od od; A;
%t A120350 oddtau[n_] := DivisorSigma[0, n/2^IntegerExponent[n, 2]]; seqQ[n_] := Module[{d = DivisorSigma[0, n], o = odd[n]}, Divisible[n, d] && Divisible[n, o] && Divisible[n, d - o]]; Select[Range[2, 2000, 2], seqQ] (* _Amiram Eldar_, Jan 15 2020 *)
%Y A120350 Cf. A033950, A049439, A057265.
%K A120350 nonn
%O A120350 1,1
%A A120350 _Walter Kehowski_, Jun 24 2006
%E A120350 Offset corrected by _Amiram Eldar_, Jan 15 2020