OFFSET
1,1
COMMENTS
a(n) <= 2^(3n-2), which is the number of pairs of binary strings upto simultaneous inverting their bits.
a(n) <= (n+1)^n, which is the number of tuples of n integers from the interval [0,n].
a(n) >= 2^n, which is achieved on the first string being all-zeros and different second strings starting with n-1 zeros.
LINKS
user9206 et al., Count the number of Hamming distance sequences, CodeGolf, 2017.
EXAMPLE
For n = 2, all pairs of integers from [0,2] are achievable as Hamming distances, hence a(2) = 3^2 = 9.
CROSSREFS
KEYWORD
nonn,more
AUTHOR
Max Alekseyev, Mar 17 2026
EXTENSIONS
a(13)-a(14) from Hugo Pfoertner, Mar 17 2026, found with user feersum's C++ program from the CodeGolf challenge.
STATUS
approved
