Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A067275
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A067275 Numbers n such that the digits of P_5(n), the n-th pentagonal number, begin with n. +0
1
1, 7, 67, 667, 6667, 66667, 666667 (list; graph; listen)
OFFSET

1,2

COMMENT

Recall that P(n) = n(3n-1)/2. From the fifth term on, it appears that all terms of the sequence begin with "666". :-)

EXAMPLE

P_5(67) = 6700, beginning in 67. Hence 67 is a term of the sequence.

MATHEMATICA

(*returns true if a begins with b, false o.w.*) f[a_, b_] := Module[{c, d, e, g, h, i, r}, r = False; c = ToString[a]; d = ToString[b]; g = StringPosition[c, d]; h = Length[g]; If[h > 0, i = g[[h]]; If[i[[1]] == 1, r = True]]; r]; Do[If[f[n(3n - 1)/2, n], Print[n]], {n, 1, 10^6} ]

CROSSREFS

Sequence in context: A139910 A077789 A124291 this_sequence A073552 A036948 A020469

Adjacent sequences: A067272 A067273 A067274 this_sequence A067276 A067277 A067278

KEYWORD

base,nonn

AUTHOR

Joseph L. Pe (joseph_l_pe(AT)hotmail.com), Feb 21 2002

page 1

Search completed in 0.002 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified July 6 17:22 EDT 2008. Contains 140988 sequences.


AT&T Labs Research