OFFSET
1,2
COMMENTS
n - tau(n) = A049820(n) is the number of positive integers < n that do not divide n.
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000 (terms 1..1000 from Robert Israel)
EXAMPLE
4 - tau(4) = 4 - 3 = 1^2 so 4 is in the sequence.
MAPLE
filter:= proc(n) local t;
t:= numtheory:-tau(n);
issqr(n-t)
end proc;
select(filter, [$1..10^4]);
MATHEMATICA
Select[Range[10^4], IntegerQ[Sqrt[# - DivisorSigma[0, #]]]&] (* Jean-François Alcover, Apr 12 2019 *)
PROG
(SageMath)
def is_A245388(n):
a = sloane.A000005
return is_square(n - a(n))
A245388_list(4333) # Peter Luschny, Jul 20 2014
(PARI) isok(k) = issquare(k - numdiv(k)); \\ Amiram Eldar, Feb 01 2025
CROSSREFS
KEYWORD
nonn
AUTHOR
Robert Israel, Jul 20 2014
STATUS
approved
