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.

A305379 Tribonacci representation of primes, written in base 2.

Original entry on oeis.org

10, 11, 101, 1000, 1100, 10000, 10100, 10110, 11011, 100101, 101000, 110000, 110100, 110110, 1000011, 1001010, 1010010, 1010100, 1011011, 1100011, 1100101, 1101100, 10000010, 10001001, 10010011, 10011000, 10011010, 10100010, 10100100, 10101001, 11000010
Offset: 1

Views

Author

N. J. A. Sloane, Jun 12 2018

Keywords

Crossrefs

Equals A278038(prime(n)).

Programs

  • Maple
    T:= proc(n) T(n):= (<<0|1|0>, <0|0|1>, <1|1|1>>^n)[2, 3] end:
    b:= proc(n) option remember; local j;
          if n=0 then 0
        else for j from 2 while T(j+1)<=n do od;
             b(n-T(j))+10^(j-2)
          fi
        end:
    a:= n-> b(ithprime(n)):
    seq(a(n), n=1..40);  # Alois P. Heinz, Jun 13 2018

Extensions

More terms from Alois P. Heinz, Jun 13 2018