Easy python3 implementation
isDivisible = [False for i in range(len(A))]\n        result = A[0]\n        isDivisible[0] = True if result % 5 == 0 else False \n        for i in range(1, len
isDivisible = [False for i in range(len(A))]\n        result = A[0]\n        isDivisible[0] = True if result % 5 == 0 else False \n        for i in range(1, len(A)):\n            result = 2 * result + A[i]\n            isDivisible[i] = True if result % 5 == 0 else False \n        \n        return isDivisible\n
[]