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

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A054268 Sum of composite numbers between prime p and nextprime(p) is a repdigit. 10
3, 5, 109, 111111109, 259259257 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,1
COMMENTS
No additional terms below 472882027.
LINKS
Eric Weisstein's World of Mathematics, Repdigit
FORMULA
Numbers A000040(n) for n > 1 such that A001043(n)*(A001223(n)-1)/2 is in A010785. - Chai Wah Wu, Aug 12 2014
EXAMPLE
a(5) is ok since between 259259257 and nextprime 259259261 we get the sum 259259258 + 259259259 + 259259260 which yield repdigit 777777777.
MATHEMATICA
repQ[n_]:=Count[DigitCount[n], 0]==9; Select[Prime[Range[2, 14500000]], repQ[Total[Range[#+1, NextPrime[#]-1]]]&] (* Harvey P. Dale, Jan 29 2011 *)
PROG
(Python)
from sympy import prime
A054268 = [prime(n) for n in range(2, 10**5) if len(set(str(int((prime(n+1)-prime(n)-1)*(prime(n+1)+prime(n))/2)))) == 1]
# Chai Wah Wu, Aug 12 2014
CROSSREFS
Sequence in context: A289488 A361092 A054266 * A153137 A105526 A070743
KEYWORD
nonn,base,hard
AUTHOR
Patrick De Geest, Apr 15 2000
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.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 24 06:24 EDT 2024. Contains 371918 sequences. (Running on oeis4.)