# Greetings from The On-Line Encyclopedia of Integer Sequences! http://oeis.org/ Search: id:a062070 Showing 1-1 of 1 %I A062070 #19 May 24 2021 00:56:49 %S A062070 2,2,0,0,2,0,0,0,0,2,4,3,2,6,5,4,3,2,8,7,2,4,7,3,6,2,5,9,4,8,3,5,0,2, %T A062070 4,0,10,3,0,9,4,2,0,0,3,5,0,0,2,4,5,3,0,0,9,4,2,0,0,8,6,4,0,13,2,0,5, %U A062070 3,0,12,7,5,2,0,3,0,0,6,4,13,2,3,0,0,4,0,0,0,7,2,4,7,0,0,5,0,0,2,0,3,2 %N A062070 Smallest base b such that the decimal digits of n interpreted as digits in base b give a square, or 0 if no such base exists. %H A062070 Felix Fröhlich, Table of n, a(n) for n = 0..10000 %e A062070 a(13) = 6 since 13_6 = 9 = 3^2 and this is the smallest such base. %o A062070 (PARI) a(n) = {for (b=2, n+2, if (issquare(fromdigits(digits(n), b)), return (b));); return (0);} \\ _Michel Marcus_, Nov 20 2017 %K A062070 base,easy,nice,nonn %O A062070 0,1 %A A062070 _Erich Friedman_, Jun 27 2001 %E A062070 Name clarified by _Felix Fröhlich_ and _Kevin Ryde_, May 17 2021 # Content is available under The OEIS End-User License Agreement: http://oeis.org/LICENSE