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!)
A114780 Least multiple of 2n-1 ending in prime(n), 0 if no such number exists. 2
2, 3, 5, 7, 711, 913, 117, 0, 323, 1729, 231, 437, 0, 243, 1247, 1953, 759, 0, 3367, 3471, 2173, 2279, 0, 4089, 2597, 28101, 45103, 0, 2109, 18113, 43127, 40131, 0, 1139, 22149, 34151, 37157, 0, 13167, 62173, 37179, 17181, 0, 38193, 33197, 17199, 86211 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
If prime(n) has k digits then a(n) == prime(n) (mod 10^k); a(8r+5) = 0 for r > 1.
LINKS
EXAMPLE
a(5) = 711, ending in 11 = prime(n) and 711 == 0 (mod 9, the fifth odd number).
PROG
(PARI) a(n) = {if (((n >=8) && ((n-8) % 5 == 0)), return (0)); k = 1; tn = 2*n-1; p = prime(n); tp = 10^length(Str(p)); while ((k*tn) % tp != p, k++); return (k*tn); } \\ Michel Marcus, Sep 15 2013
CROSSREFS
Cf. A114781.
Sequence in context: A360789 A145843 A090720 * A241681 A134811 A046479
KEYWORD
base,nonn
AUTHOR
Amarnath Murthy, Nov 17 2005
EXTENSIONS
More terms from Joshua Zucker, May 05 2006
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 11:16 EDT 2024. Contains 371936 sequences. (Running on oeis4.)