Weighted Hardy inequalities for decreasing sequences and functions