login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A305379
Tribonacci representation of primes, written in base 2.
2
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,1
LINKS
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
CROSSREFS
Equals A278038(prime(n)).
Sequence in context: A124387 A171796 A362917 * A004685 A361335 A171000
KEYWORD
nonn,base
AUTHOR
N. J. A. Sloane, Jun 12 2018
EXTENSIONS
More terms from Alois P. Heinz, Jun 13 2018
STATUS
approved