Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A117417
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A117417 Integer k such that 3^n + k = A117405(n). +0
1
3, 1, 0, -1, 1, 4, 2, -1, -2, -4, -2, 2, -2, -1, 10, -2, 1, -4, 4, -2, -2, -2, -12, -4, 8, -2 (list; graph; listen)
OFFSET

0,1

COMMENT

Distance from 3^n to the nearest semiprime. See also: A117405 Semiprime nearest to 2^n. A117387 Prime nearest to 2^n.

FORMULA

a(n) = Integer k such that 3^n + k = A117416(n). a(n) = A117416(n) - 3^n. a(n) = Min{k such that A001358(i) + k = 3^n}.

EXAMPLE

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

a(1) = 1 because 3^1 + 1 = 4 = A001358(1), and no semiprime is closer to 3^1.

a(2) = 0 because 3^2 + 0 = 9 = 3^2 = A001358(3), no semiprime is closer to 3^2 [this is the only 0 element].

a(3) = -1 because 3^3 - 1 = 26 = 2 * 13, no semiprime is closer.

a(4) = 1 because 3^4 + 1 = 82 = 2 * 41, no semiprime is closer.

a(5) = 4 because 3^5 + 4 = 247 = 13 * 19, no semiprime is closer.

CROSSREFS

Cf. A000079, A001358, A117387, A117405, A117406, A117416.

Sequence in context: A060096 A051834 A062719 this_sequence A053382 A031253 A122779

Adjacent sequences: A117414 A117415 A117416 this_sequence A117418 A117419 A117420

KEYWORD

easy,sign,less

AUTHOR

Jonathan Vos Post (jvospost3(AT)gmail.com), Mar 13 2006

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 November 18 20:14 EST 2008. Contains 147244 sequences.


AT&T Labs Research