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 A096869 #2 Mar 30 2012 17:31:05 %S A096869 1,2,2,6,2,8,40,6,2,10,2,38,28,12,118,12,8,20,60,20,46,78,6,2,102,272, %T A096869 80,246,6,80,102,36,116,10,36,10,238,32,20,6,78,412,88,426,118,172,48, %U A096869 58,112,8,56,430,90,136,240,30,140,232,162,40,226,48,116,60,690,146,210 %N A096869 Difference between the n-th repunit and the next prime. %F A096869 a(n) = A096497(n) - A002275(n) = A096499(n) - A096870(n). %t A096869 NextPrim[n_] := Block[{k = n + 1}, While[ !PrimeQ[k], k++ ]; k]; Table[ NextPrim[(10^n - 1)/9] - (10^n - 1)/\ 9, {n, 70}] %Y A096869 Cf. A096870. %K A096869 nonn %O A096869 1,2 %A A096869 _Robert G. Wilson v_, Jul 12 2004