login
This site is supported by donations to The OEIS Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A062070 Smallest base such that n is a square (or 0 if no such base exists). 0
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, 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, 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 (list; graph; refs; listen; history; text; internal format)
OFFSET

0,1

LINKS

Table of n, a(n) for n=0..100.

EXAMPLE

a(13) = 6 since 13_6 = 9 = 3^2 and this is the smallest such base.

PROG

(PARI) a(n) = {for (b=2, n+2, if (issquare(fromdigits(digits(n), b)), return (b)); ); return (0); } \\ Michel Marcus, Nov 20 2017

CROSSREFS

Sequence in context: A281790 A245254 A059080 * A239395 A182004 A179851

Adjacent sequences:  A062067 A062068 A062069 * A062071 A062072 A062073

KEYWORD

base,easy,nice,nonn

AUTHOR

Erich Friedman, Jun 27 2001

STATUS

approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified July 17 02:10 EDT 2019. Contains 325092 sequences. (Running on oeis4.)