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

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A102832 Number of n-digit squares which contain the string "666" but not "6666". 0
0, 0, 0, 0, 0, 0, 3, 21, 78, 302, 1139, 4156, 14791, 52529, 183565, 635691, 2183533, 7314869, 25303217 (list; graph; refs; listen; history; internal format)
OFFSET

1,7

MATHEMATICA

fQ[n_] := StringPosition[ ToString[n^2], "666"] != {} && StringPosition[ ToString[n^2], "6666"] == {}; t = Table[0, {20}]; Do[ If[ fQ[n], t[[ Ceiling[ Log[10, n^2]] + 1]]++ ], {n, 3162277661}]; t (from Robert G. Wilson v Mar 10 2005)

CROSSREFS

Cf. A052041, A102794, A102807 A032746.

Sequence in context: A109721 A067002 A110450 * A112851 A034490 A071351

Adjacent sequences:  A102829 A102830 A102831 * A102833 A102834 A102835

KEYWORD

nonn,base

AUTHOR

James Buddenhagen (jbuddenh(AT)gmail.com), Feb 27 2005

EXTENSIONS

a(13), a(14), a(15), a(16), a(17), a(18) & a(19) from Robert G. Wilson v (rgwv(AT)rgwv.com), Mar 3 2005

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 February 16 14:37 EST 2012. Contains 205930 sequences.