# Greetings from The On-Line Encyclopedia of Integer Sequences! http://oeis.org/
Search: id:a326894
Showing 1-1 of 1
%I A326894 #30 Sep 14 2019 17:51:56
%S A326894 1,2,1,4,7,8,19,20,5,2,1,4,7,8,1,4,7,8,19,20,5,2,1,4,2,4,2,4,7,8,19,
%T A326894 20,5,2,4,2,1,4,2,4,7,8,19,20,5,2,1,4,2,4,2,4,7,8,1,4,2,4,7,8,19,20,5,
%U A326894 2,4,2,1,4,2,4,7,8,19,20,5,2,4,2,1,4,2,4,7,8,1,4,2,4,7,8,1,4,2
%N A326894 a(1) = 1; thereafter, a(n) is the reversal of the next prime after a(n - 1) in base 3 if n is prime, and the reversal of the next composite after a(n - 1) in base 3 if n is composite.
%C A326894 The sequence is written in base 10.
%C A326894 _Rémy Sigrist_'s argument from A326344 gives an upper bound of 23, although the true maximum value is 20, as confirmed by _Andrew Weimholt_'s argument from A326344.
%H A326894 N. J. A. Sloane, Table of n, a(n) for n = 1..20000
%H A326894 Robert Dougherty-Bliss, Proof that A326894 is bounded with maximum value 20
%e A326894 By definition, a(1) = 1. The next composite after a(3) = 1 is 4, or 11 in base 3. Reversed this is still 11 in base 3, or 4 in base 10. Thus a(4) = 4 since 4 is composite.
%Y A326894 Cf. A326344, A326892, A151800, A113646.
%K A326894 nonn,base
%O A326894 1,2
%A A326894 _Robert Dougherty-Bliss_, Sep 13 2019
%E A326894 Corrected by _N. J. A. Sloane_, Sep 13 2019
# Content is available under The OEIS End-User License Agreement: http://oeis.org/LICENSE