login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A355642 Lexicographically earliest sequence of distinct nonnegative integers such that for any n >= 0, the balanced ternary expansion of n * a(n) contains as many negative trits as positive trits. 1

%I #9 Jul 14 2022 09:34:28

%S 0,2,1,6,4,12,3,8,7,16,13,14,5,10,11,26,9,24,23,28,20,22,21,18,17,32,

%T 15,46,19,30,29,40,25,42,34,48,36,38,37,44,31,52,33,54,39,58,27,74,35,

%U 56,55,68,41,70,43,50,49,64,45,66,60,72,63,62,57,76,59,80

%N Lexicographically earliest sequence of distinct nonnegative integers such that for any n >= 0, the balanced ternary expansion of n * a(n) contains as many negative trits as positive trits.

%C This sequence is a self-inverse permutation of the nonnegative integers.

%H Rémy Sigrist, <a href="/A355642/b355642.txt">Table of n, a(n) for n = 0..2187</a>

%H Rémy Sigrist, <a href="/A355642/a355642.gp.txt">PARI program</a>

%H <a href="/index/Per#IntegerPermutation">Index entries for sequences that are permutations of the natural numbers</a>

%e The first terms, alongside the balanced ternary expansion of n * a(n), are:

%e n a(n) bter(n*a(n))

%e -- ---- ------------

%e 0 0 0

%e 1 2 1T

%e 2 1 1T

%e 3 6 1T00

%e 4 4 1TT1

%e 5 12 1T1T0

%e 6 3 1T00

%e 7 8 1T01T

%e 8 7 1T01T

%e 9 16 1TT100

%e 10 13 1TTT11

%e 11 14 1T0T01

%e 12 5 1T1T0

%o (PARI) See Links section.

%Y See A306993 for a similar sequence.

%Y Cf. A065363, A174658, A355639.

%K nonn,base

%O 0,2

%A _Rémy Sigrist_, Jul 11 2022

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified September 15 15:30 EDT 2024. Contains 375938 sequences. (Running on oeis4.)