This site is supported by donations to The OEIS Foundation.

 Annual appeal: Please make a donation to keep the OEIS running! Over 6000 articles have referenced us, often saying "we discovered this result with the help of the OEIS". Other ways to donate

 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A117429 Semiprime nearest to 5^n. In case of a tie, choose the smaller. 1

%I

%S 4,4,25,123,626,3127,15623,78123,390623,1953122,9765627,48828127,

%T 244140623,1220703121,6103515629,30517578127,152587890617,

%U 762939453119,3814697265623,19073486328122,95367431640623

%N Semiprime nearest to 5^n. In case of a tie, choose the smaller.

%C Distance from 5^n to the nearest semiprime.

%F a(n) = 5^n + A117430(n). a(n) = 5^n + Min{k such that A001358(i) + k = 5^n}.

%e a(0) = 4 because 5^0 + 3 = 4 = A001358(1) and no semiprime is closer to 5^0.

%e a(1) = 4 because 5^1 - 1 = 4 = A001358(1) and no semiprime is closer to 5^1.

%e a(2) = 25 because 5^2 + 0 = 25 = A001358(9), no semiprime is closer to 5^2.

%e a(3) = 123 because 5^3 - 2 = 123 = 3 * 41 = A001358(42), no semiprime is closer.

%e a(4) = 626 because 5^4 + 1 = 626 = 2 * 313, no semiprime is closer.

%e a(5) = 3127 because 5^5 + 2 = 3127 = 53 * 59, no semiprime is closer.

%e a(6) = 15623 because 5^6 - 2 = 15623 = 17 * 919, no semiprime is closer.

%e a(7) = 78123 because 5^7 - 2 = 78123 = 3 * 26041, no semiprime is closer.

%e a(8) = 390623 because 5^8 - 2 = 390623 = 73 * 5351, no semiprime is closer.

%e a(9) = 1953122 because 5^9 - 3 = 1953122 = 2 * 976561, no semiprime is closer.

%e a(10) = 9765627 because 5^10 + 2 = 9765627 = 3 * 3255209, no semiprime closer.

%Y Cf. A117416 = Semiprime nearest to 3^n, A117405 = Semiprime nearest to 2^n, A117387 = Prime nearest to 2^n.

%Y Cf. A000079, A001358, A117387, A117405, A117406, A117416, A117430.

%K easy,nonn,less

%O 0,1

%A _Jonathan Vos Post_, Mar 14 2006

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent | More pages
The OEIS Community | Maintained by The OEIS Foundation Inc.