A076494 Number of common decimal digits of 2^n and 2^(1+n).
0, 0, 0, 0, 0, 0, 1, 2, 2, 3, 2, 1, 2, 3, 2, 1, 2, 2, 3, 4, 3, 2, 1, 1, 1, 4, 4, 5, 6, 6, 4, 3, 3, 5, 6, 6, 5, 4, 4, 5, 5, 5, 6, 7, 6, 6, 7, 6, 6, 7, 7, 6, 5, 5, 6, 5, 7, 8, 7, 8, 8, 8, 8, 8, 8, 7, 9, 9, 9, 7, 6, 7, 7, 8, 8, 8, 7, 9, 9, 8, 9, 9, 9, 9, 8, 9, 10, 10, 9, 7, 8, 8, 9, 10, 10, 10, 10, 9, 9, 10, 9
Offset: 1
Programs
-
Mathematica
Table[Length[Intersection[IntegerDigits[2^n], IntegerDigits[2^(n+1)]]], {n, 1, 100}]