A243282 Partial sums of the characteristic function for A070003.
0, 0, 0, 1, 1, 1, 1, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 13, 13, 14, 14, 14, 15, 15, 15, 15, 15, 15, 16
Offset: 1
Keywords
Examples
A070003(402) = 10000, thus a(10000) = 402.
Links
- Harvey P. Dale, Table of n, a(n) for n = 1..1000
Programs
-
Mathematica
Accumulate[Join[{0},Table[If[Divisible[n,Last[Select[Divisors[n],PrimeQ]]^2],1,0],{n,2,90}]]] (* Harvey P. Dale, Sep 05 2018 *)
Formula
a(n) = A243283(n)-1.
Comments