OFFSET
1,3
COMMENTS
If a(n) mod 6 = 0, then a(n+1) = a(n)+1.
a(41) = 1026, a(42) = 1027, a(43) = 1028 and a(44) = 1029 is the first time that four consecutive numbers appear in a(n). Conjecture: There is no occurrence of five or more consecutive numbers in a(n). Tested by exhaustive search up to 3^30. - Thomas König, Jul 19 2020
LINKS
Thomas König, Table of n, a(n) for n = 1..20000
Thomas König, C program
EXAMPLE
34_10 = 11T1_bt = 10010_2, the sum of the digits is 1+1-1+1 = 2 for balanced ternary and 1+1 = 2 for base 2, so 34 is a term.
PROG
(PARI) bt(n)= if (n==0, return (0)); my(d=digits(n, 3), c=1); while(c, if(d[1]==2, d=concat(0, d)); c=0; for(i=2, #d, if(d[i]==2, d[i]=-1; d[i-1]+=1; c=1))); vecsum(d); \\ A065363
isok(m) = bt(m) == hammingweight(m); \\ Michel Marcus, Jun 07 2020
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Thomas König, May 02 2020
EXTENSIONS
Offset corrected by Thomas König, Jul 09 2020
STATUS
approved