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!)
A107741 Smallest number m such that prime(n) = m + (digit sum of m), a(n)=0 if no such m exists. 3
1, 0, 0, 0, 10, 11, 13, 14, 16, 19, 0, 32, 34, 35, 37, 0, 52, 53, 56, 58, 59, 71, 73, 76, 0, 91, 92, 94, 95, 97, 122, 124, 127, 128, 142, 143, 146, 149, 160, 163, 166, 167, 181, 182, 184, 185, 0, 215, 217, 218, 0, 232, 233, 238, 250, 253, 256, 257, 0, 271 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,5
COMMENTS
If a(n)>0 then: A000040(n)=A062028(a(n)) and A107740(n)>0.
LINKS
PROG
(Haskell)
a107741 n = if null ms then 0 else head ms where
ms = [m | let p = a000040 n,
m <- [max 0 (p - 9 * a055642 p) .. p - 1], a062028 m == p]
-- Reinhard Zumkeller, Sep 27 2014
CROSSREFS
Sequence in context: A216502 A219256 A339076 * A047791 A253610 A302578
KEYWORD
nonn,base
AUTHOR
Reinhard Zumkeller, May 23 2005
EXTENSIONS
Data error corrected by Reinhard Zumkeller, Sep 27 2014
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 25 07:07 EDT 2024. Contains 371964 sequences. (Running on oeis4.)