proposed
approved
proposed
approved
editing
proposed
List of numbers n whose base -3 expansion contains only the digits 1 and 2 and whose base -4 expansion contains only the digits 2 and 3.
proposed
editing
editing
proposed
n += 1 # Chai Wah Wu, Oct 30 2015
(Python)
from gmpy2 import digits
def f1(n):
s = digits(n, 3)
m = len(s)
for i in range(m):
if s[i] == '0':
return(int(s[:i]+'1'*(m-i), 3))
return n
def f2(n):
s = digits(n, 4)
m = len(s)
for i in range(m):
if s[i] in ['0', '1']:
return(int(s[:i]+'2'*(m-i), 4))
return n
A262963_list = []
n = 1
for i in range(10**4):
m = f2(f1(n))
while m != n:
n, m = m, f2(f1(m))
A262963_list.append(m)
n += 1 # Chai Wah Wu, Oct 30 2015
Chai Wah Wu, <a href="/A262963/b262963.txt">Table of n, a(n) for n = 1..10000</a>
approved
editing
editing
approved
Numbers List of numbers n in whose base b where 3 expansion contains only the number digits 1 and 2 and whose base 4 expansion contains only the two highest digits for both b=3 2 and b=43.
proposed
editing
editing
proposed