OFFSET
1,2
LINKS
Maxim Skorohodov, Table of n, a(n) for n = 1..10000
EXAMPLE
sqrt(21) = 4.58257569..., so a(21) = 2.
PROG
(C++) int a(int n) { return int(1000 * sqrt(n)) % 10; }
(PARI) a(n) = floor(10^3*sqrt(n)) % 10; \\ Jinyuan Wang, Nov 03 2019
CROSSREFS
KEYWORD
nonn,easy,base
AUTHOR
Maxim Skorohodov, Oct 28 2019
STATUS
approved