一串数字,例如git
2 3 4 2 5 1 7 5 2it
筛选出重复出现了至少n次的数字,例如di
n = 2数字
2 5
一个数P,计算它的super数,多位数的super数是每一位上的数相加,之和的super数 。只有1位的数,super数等于它自己。
例如
super-digit(P) = super-digit(148148148) = super-digit(1+4+8+1+4+8+1+4+8) = super-digit(39) = super-digit(3+9) = super-digit(12) = super-digit(1+2) = super-digit(3) = 3.