OFFSET
1,2
COMMENTS
For n <= 127, this is the same as the number of vertices of the polytope representing the number n. The latter is given in A335152. The sequences differ starting at n = 128. See A335152 and Lu and Deng, Appendix. - N. J. A. Sloane, May 25 2020
a(n) is the number of x in [1,n] such that x^2 has no divisor d with x < d <= n. - Robert Israel, Sep 03 2020
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
Ya-Ping Lu and Shu-Fang Deng, Properties of Polytopes Representing Natural Numbers, arXiv:2003.08968 [math.GM], 2020.
EXAMPLE
In the 1-to-5 multiplication table, four numbers (1,9,16,25) appear once only. Therefore a(5)=4.
MAPLE
N:= 200: # for a(1)..a(N)
V:= Vector(N):
for x from 1 to N do
y:= min(N, min(select(`>`, numtheory:-divisors(x^2), x))-1);
V[x..y]:= map(`+`, V[x..y], 1)
od:
convert(V, list); # Robert Israel, Sep 03 2020
CROSSREFS
KEYWORD
nonn
AUTHOR
Matthew Somerville (matthew.somerville(AT)trinity.oxford.ac.uk), Aug 24 2001
STATUS
approved