OFFSET
1,3
COMMENTS
If we consider each square k as having a continued fraction expansion c of all zeros after c(0) = sqrt(k)-1, then the continued fraction expansion of sqrt(k) for each square is trivially multiplicative.
For nonsquares, c(1) must be 1 and so k must satisfy m + 1/2 < sqrt(k) <= m+1, for some integer m.
EXAMPLE
The continued fraction of sqrt(22) is c = (4; 1, 2, 4, 2, 1, 8, ...) = A010126, which is multiplicative with c(2^e) = 2, c(3^e) = 4, c(p^e) = 1 otherwise.
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Mitch Harris, Jun 18 2005
STATUS
approved