The OEIS is supported by the many generous donors to the OEIS Foundation.

 Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 59th year, we have over 358,000 sequences, and we’ve crossed 10,300 citations (which often say “discovered thanks to the OEIS”). Other ways to Give
 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A161871 Smallest happy number > 1 in base n. 2
 2, 3, 2, 5, 6, 7, 8, 3, 7, 11, 12, 13, 14, 15, 2, 17, 2, 5, 2, 21, 22, 23, 24, 5, 26, 27, 28, 3, 2, 31, 32, 33, 3, 35, 6, 31, 38, 39, 40, 13, 42, 43, 44, 45, 46, 47, 48, 7, 50, 51, 52, 31, 54, 53, 56, 57, 58, 59, 54, 61, 62, 63, 8, 65, 66, 67, 12, 69, 70, 71, 72 (list; graph; refs; listen; history; text; internal format)
 OFFSET 2,1 LINKS Amiram Eldar, Table of n, a(n) for n = 2..1001 MATHEMATICA happyQ[n_, b_] := NestWhile[Plus @@ (IntegerDigits[#, b]^2) &, n, UnsameQ, All] == 1; a[b_] := Module[{k=2}, While[!happyQ[k, b], k++]; k]; Array[a, 100, 2] (* Amiram Eldar, May 28 2020 *) CROSSREFS Cf. A007770 (happy numbers in base 10). Sequence in context: A293303 A333569 A110500 * A331737 A135875 A350390 Adjacent sequences: A161868 A161869 A161870 * A161872 A161873 A161874 KEYWORD nonn,base AUTHOR Jud McCranie, Jun 20 2009 STATUS approved

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

Last modified December 3 09:02 EST 2022. Contains 358515 sequences. (Running on oeis4.)