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.

A114754 Smallest prime of the form: n successive positive integers in ascending order followed by a 1.

This page as a plain text file.
%I A114754 #10 Dec 05 2013 19:57:14
%S A114754 11,10111,1231,67891,9101112131,3456781,91011121314151,45678910111,
%T A114754 1234567891,303132333435363738391,12345678910111,
%U A114754 939495969798991001011021031041,91011121314151617181920211
%N A114754 Smallest prime of the form: n successive positive integers in ascending order followed by a 1.
%e A114754 a(2) = 10111= 10 followed by 11 followed by 1.
%e A114754 a(3) = 1231, three successive positive integers 1,2,3 in ascending order followed by a 1.
%t A114754 a[n_]:=(For[m=1, (v={};Do[v=Join[v, IntegerDigits[k]], {k, m, m+n-1}]);!PrimeQ[10FromDigits[v]+1], m++ ];10FromDigits[v]+1);Table[a[n], {n, 14}] - Farideh Firoozbakht
%t A114754 f[n_] := Block[{t = Range@n}, While[p = FromDigits@Flatten@IntegerDigits@Join[t, {1}]; !PrimeQ@p, t++ ]; p]; Array[f, 13] (* _Robert G. Wilson v_ *)
%Y A114754 Cf. A113513, A114755, A114756, A114757, A114758, A114759, A112716, A108145.
%K A114754 base,nonn
%O A114754 1,1
%A A114754 _Amarnath Murthy_, Jan 01 2006
%E A114754 Extended by _Robert G. Wilson v_, _Ray Chandler_ and _Farideh Firoozbakht_, Jan 02 2006