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.
%I A294639 #31 Feb 25 2024 05:59:33 %S A294639 2,3,7,5,19,5,11,5,13,11,2,11,11,13,13,11,43,11,47,29,11,31,101,7,3,3, %T A294639 5,5,7,7,59,29,61,31,61,29,139,103,67,67,67,29,67,71,73,31,71,17,67, %U A294639 71,73,73,607,19,73,17,73,19,313,19,83,17,71,73,337,13,71 %N A294639 a(n) = least prime p such that n divides p + prime(n). %C A294639 This sequence was inspired by A134204. %C A294639 The logarithmic scatterplot of the sequence has interesting features (see Links section). %C A294639 We observe runs of consecutive equal terms: %C A294639 - first pair: a(12) = a(13) = 11, %C A294639 - first triple: a(39) = a(40) = a(41) = 67, %C A294639 - first quadruple: a(24980) = a(24981) = a(24982) = a(24983) = 12983. %C A294639 a(1) = prime(1). %C A294639 a(2) = prime(2). %H A294639 Rémy Sigrist, <a href="/A294639/b294639.txt">Table of n, a(n) for n = 1..10000</a> %H A294639 Rémy Sigrist, <a href="/A294639/a294639.png">Logarithmic scatterplot of the sequence for n=1..50000</a> %H A294639 Rémy Sigrist, <a href="/A294639/a294639_1.png">Colored logarithmic scatterplot of the sequence for n=1..50000</a> (where the color is function of (a(n) + prime(n))/n) %e A294639 For n=3: %e A294639 - prime(3) = 5, %e A294639 - 3 does not divide 2 + 5, %e A294639 - 3 does not divide 3 + 5, %e A294639 - 3 does not divide 5 + 5, %e A294639 - 3 divides 7 + 5, %e A294639 - hence a(3) = 7. %o A294639 (PARI) a(n) = my (q=prime(n)); forprime(p=2,, if ((p+q)%n==0, return (p))) %Y A294639 Cf. A134204, A254862. %K A294639 nonn,look %O A294639 1,1 %A A294639 _Rémy Sigrist_, Nov 05 2017