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

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A194352 First of quadruples of consecutive happy numbers. 1
7839, 8739, 11248, 12148, 21148, 44488, 44489, 44939, 49439, 70839, 78039, 80739, 87039, 94439, 101248, 102148, 110248, 112048, 120148, 121048, 201148, 210148, 211048, 222688, 222689, 226288, 226289, 236839, 238639, 258598, 258599, 262288, 262289, 263839 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,1

LINKS

Table of n, a(n) for n=1..34.

Weisstein, Eric W.: MathWorld -- Happy Number.

EXAMPLE

7839, 7840, 7841, 7842 are the first of four consecutive integers each of which is a happy number, hence a(1) = 7839.

MATHEMATICA

f[n_] := Total[IntegerDigits[n]^2]; t = Select[Range[300000], NestWhile[f, #, UnsameQ, All] == 1 &]; t[[Select[Range[Length[t] - 3],  t[[#]] == t[[# + 1]] - 1 == t[[# + 2]] - 2 == t[[# + 3]] - 3 &]]] (* T. D. Noe, Aug 22 2011 *)

CROSSREFS

Cf. A007770, A035502, A055629, A072494.

Sequence in context: A223361 A222339 A043520 * A045277 A099498 A045292

Adjacent sequences:  A194349 A194350 A194351 * A194353 A194354 A194355

KEYWORD

nonn,base

AUTHOR

Martin Renner, Aug 22 2011

STATUS

approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
Recent Additions | More pages | Superseeker | Maintained by The OEIS Foundation Inc.

Content is available under The OEIS End-User License Agreement .

Last modified May 23 05:24 EDT 2013. Contains 225585 sequences.