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.

A262630 Base-10 representation of 1 and the primes at A262629.

This page as a plain text file.
%I A262630 #7 Oct 17 2015 17:40:54
%S A262630 1,7,31,127,5113,303049,130677919,8561616127,343370835961,
%T A262630 398015959727917,6536129506258687661,136824982467292060343,
%U A262630 1727891550586579544797,518772379027828374941147,33164398702973727192477403,91254204345537698333055497929
%N A262630 Base-10 representation of 1 and the primes at A262629.
%H A262630 Clark Kimberling, <a href="/A262630/b262630.txt">Table of n, a(n) for n = 1..300</a>
%e A262630 n   A262629(n)    base-10 representation
%e A262630 1   1                 1
%e A262630 2   111               7
%e A262630 3   11111             31
%e A262630 4   1111111           127
%e A262630 5   1001111111001     5113
%t A262630 s = {1}; base = 2; z = 20; Do[NestWhile[# + 1 &, 1, ! PrimeQ[tmp = FromDigits[Join[#, IntegerDigits[Last[s]], Reverse[#]] &[IntegerDigits[#, base]], base]] &];
%t A262630 AppendTo[s, FromDigits[IntegerDigits[tmp, base]]], {z}]; s  (* A262629 *)
%t A262630 Map[FromDigits[ToString[#], base] &, s]  (* A262630 *)
%t A262630 (* _Peter J. C. Moses_, Sep 01 2015 *)
%Y A262630 Cf. A262629. Subsequence of A016041 (except a(1)).
%K A262630 nonn,base
%O A262630 1,2
%A A262630 _Clark Kimberling_, Oct 02 2015