%I #21 Feb 08 2023 09:28:30
%S 1,8,85,125,365,445,533,629,965,1685,1800,1853,2340,2605,2813,3029,
%T 3973,4765,5045,5220,5629,5933,6245,6893,8285,8653,11029,11453,11885,
%U 12773,14165,15133,16645,17165,17460,17693,20453,21029,22205,22805,23413,24653,27229
%N Numbers n where tau(n) and n-tau(n) are perfect squares, with tau(n) the number of divisors of n (A000005).
%C Subsequence of A036436. - _Michel Marcus_, Jul 15 2014
%C Intersection of A036436 and A245388. - _Robert Israel_, Jul 20 2014
%H Jens Kruse Andersen, <a href="/A245197/b245197.txt">Table of n, a(n) for n = 1..2989</a>
%p filter:= proc(n) local t;
%p t:= numtheory:-tau(n);
%p issqr(t) and issqr(n-t)
%p end proc;
%p select(filter, [$1..10^5]); # _Robert Israel_, Jul 20 2014
%t okQ[n_] := With[{t = DivisorSigma[0, n]}, IntegerQ@Sqrt[t] && IntegerQ@Sqrt[n-t]];
%t Select[Range[10^5], okQ] (* _Jean-François Alcover_, Feb 08 2023 *)
%o (PARI) isok(n) = issquare(numdiv(n)) && issquare(n-numdiv(n)); \\ _Michel Marcus_, Jul 15 2014
%Y Cf. A000005 (tau(n)), A049820 (n - tau(n)), A036436 (n such that tau(n) is square), A245388 (n such that n - tau(n) is square).
%K nonn
%O 1,2
%A _Reinhard Muehlfeld_, Jul 13 2014