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.

A231442 The digits of a(n) and a(n+1) taken together are the digits of a prime; least permutation of the positive integers with this property.

Original entry on oeis.org

1, 3, 2, 9, 5, 11, 8, 12, 4, 7, 6, 10, 13, 15, 14, 17, 18, 16, 19, 21, 22, 30, 20, 23, 24, 29, 26, 27, 25, 31, 28, 33, 32, 35, 36, 34, 37, 39, 38, 41, 42, 43, 45, 47, 44, 51, 40, 49, 46, 57, 50, 53, 48, 59, 56, 63, 52, 61, 54, 67, 55, 69, 58, 70, 60, 71, 62, 72, 64, 73, 66, 79, 75, 65, 74, 68, 77
Offset: 1

Views

Author

M. F. Hasler, Nov 09 2013

Keywords

Examples

			Start with a(1)=1. The same number cannot be used twice, so the least prime that can be made with this digit is 13, so a(2)=3.
		

Crossrefs

Cf. A231433 (analog for nonnegative integers).

Programs

  • PARI
    {a=1;u=0;for(n=1,99,u+=1<"0"&&(a=k)&&next(3))))}