OFFSET
1,3
COMMENTS
When n is a sixth power, let a(n) = 0 rather than a(n) = 9. - Charles R Greathouse IV, Jan 06 2016
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..1000
MATHEMATICA
Array[ Function[ n, RealDigits[ N[ Power[ n, 1/6 ], 10 ], 10 ]// (#[ [ 1, #[ [ 2 ] ]+1 ] ])& ], 110 ]
Table[RealDigits[Surd[n, 6], 10, 10][[1, 2]], {n, 120}] (* Harvey P. Dale, Jun 23 2016 *)
PROG
(PARI) a(n)=if(ispower(n, 6), 0, 10*frac(sqrtn(n, 6))\1) \\ Charles R Greathouse IV, Jan 06 2016
(Python)
from sympy import integer_nthroot
def A023965(n): return integer_nthroot(n*10**6, 6)[0] % 10 # Chai Wah Wu, Nov 14 2022
CROSSREFS
KEYWORD
nonn,base
AUTHOR
STATUS
approved