proposed
approved
proposed
approved
editing
proposed
Indranil Ghosh, <a href="/A272896/b272896.txt">Table of n, a(n) for n = 0..10000</a>
(PARI) a(n) = #select(x -> x%2, digits(2^n)) - #select(x -> !(x%2), digits(2^n));
for(n=0, 78, print1(a(n), ", ")) \\ Indranil Ghosh, Mar 13 2017
(Python)
def A272896(n):
....x=y=0
....for i in str(2**n):
........if int(i)%2: x+=1
........else: y+=1
....return x - y # Indranil Ghosh, Mar 13 2017
approved
editing
editing
approved
All vanishing entries are a(A272898(k)) = 0, k >= 1. - Wolfdieter Lang, May 24 2016
proposed
editing
editing
proposed
Difference between the number of odd and the number of even digits in the decimal digits expansion of 2^n.
proposed
editing
editing
proposed
1, -1, -1, -1, 0, 0, -2, -1, -1, 1, -2, -4, -2, 0, -1, -1, 1, 2, -4, -4, -1, 1, -1, -5, 2, 2, -4, 1, -3, 1, 0, -4, -2, 2, 3, 3, 1, 4, -2, 2, 5, 3, -1, -5, -2, -2, -2, 1, -1, 3, -4, 0, 2, 2, -1, -1, 5, 2, 2, -4, -3, 1, -5, -1, 0, 0, -6, 3, 5, 5, 2, -10, -8, 2, -3, 7, 9, 0, 0, -4, -1, 1, -5, 3, 2, -2, 6, -1, -5, -1, -4, -8, 6, 6, -7, 7, 5, -4, 6, -4, -9
proposed
editing