OFFSET
1,10
COMMENTS
Conjecture : for n > 1000 a(n) - n/2 < - sqrt(n) ( if b(n) denotes the number of x with largest prime factor of the form 4k+3 less than or equal to n, it is conjectured that if n > 1000 b(n)- n/2 > sqrt(n) )
Partial sums of the indicator function of A071821. - Robert Israel, Nov 05 2024
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
MAPLE
filter:= n -> max(numtheory:-factorset(n)) mod 4 = 1:
R:= NULL: t:= 0:
for i from 1 to 100 do
if filter(i) then t:= t+1 fi;
R:= R, t
od:
R; # Robert Israel, Nov 05 2024
MATHEMATICA
Join[{0}, Accumulate[Boole[Divisible[FactorInteger[Range[2, 100]][[All, -1, 1]] - 1, 4]]]] (* Paolo Xausa, Nov 23 2024 *)
PROG
(PARI) a(n)=sum(i=2, n, ((factor(i)[omega(i), 1])-1)%4==0)
(Python)
from sympy import factorint
a = lambda n: sum(1 for i in range(2, n + 2) if (max(factorint(i).keys()) - 1) & 3 == 0)
print([a(n) for n in range(0, 79)]) # Darío Clavijo, Nov 05 2024
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Benoit Cloitre, Jun 07 2002
EXTENSIONS
Missing a(1)=0 inserted by Sean A. Irvine, Aug 15 2024
Name edited by Michel Marcus, Nov 05 2024
STATUS
approved