Adding increasing sequence problem