STATUS
proposed
approved
proposed
approved
editing
proposed
reviewed
approved
proposed
reviewed
editing
proposed
(Python)
def inA044972(n):
aa = [0, 0, 0]
while n != 0:
aa[n%3], n = aa[n%3]+1, n//3
return aa[0] == 1 and aa[1] == 2
n, a = 1, 0
while n < 20:
if inA044972(a):
print(n, a)
n = n+1
a = a+1 # A.H.M. Smeets, Aug 19 2019
proposed
editing
editing
proposed
Numbers n with property that in base -3 representation the numbers of 0's and 1's are 1 and 2, respectively.
proposed
editing
editing
proposed