OFFSET
1,6
COMMENTS
LINKS
Peter Kagey, Table of n, a(n) for n = 1..5000
EXAMPLE
Let g(n) = A067565(n)
a(12) = 3 because g(g(g(12))) = g(g(6)) = g(3) = 0, which is a perfect square.
PROG
(Ruby)
def a(n)
c = 0
n = a067565(n) while n.is_nonsquare? && c += 1
c
end
CROSSREFS
KEYWORD
nonn
AUTHOR
Peter Kagey, Mar 12 2015
STATUS
approved