there are ties numbered from . all ties numbered with a square are taken out. the remaining ties are renumbered from onwards. again all ties numbered with square numbers are taken out. the remaining tie are renumbered again onwards. find a general formula for number of ties for how many times square numbered ties were taken out till only a tie numbered remained