cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A117417 Integer k such that 3^n + k = A117416(n).

This page as a plain text file.
%I A117417 #9 Jun 15 2016 10:33:25
%S A117417 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,
%T A117417 -7,2,-2,8,14,-5,1,-4,-8,-4,16,6,-6,-2,2,-8,-2,12,-2,-5,-8,10,-2,4,
%U A117417 -10,40,8,-10,4,-2,-34,-2,4,-20,-2
%N A117417 Integer k such that 3^n + k = A117416(n).
%C A117417 Distance from 3^n to the nearest semiprime. If there are two semiprimes at the same distance, take the negative k-value.
%C A117417 See also: A117405 Semiprime nearest to 2^n. A117387 Prime nearest to 2^n.
%F A117417 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}.
%e A117417 a(0) = 3 because 3^0 + 3 = 4 = A001358(1) and no semiprime is closer to 3^0.
%e A117417 a(1) = 1 because 3^1 + 1 = 4 = A001358(1) and no semiprime is closer to 3^1.
%e A117417 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].
%e A117417 a(3) = -1 because 3^3 - 1 = 26 = 2 * 13, no semiprime is closer.
%e A117417 a(4) = 1 because 3^4 + 1 = 82 = 2 * 41, no semiprime is closer.
%e A117417 a(5) = 4 because 3^5 + 4 = 247 = 13 * 19, no semiprime is closer.
%Y A117417 Cf. A000079, A001358, A117387, A117405, A117406, A117416.
%K A117417 easy,sign,less
%O A117417 0,1
%A A117417 _Jonathan Vos Post_, Mar 13 2006