# Greetings from The On-Line Encyclopedia of Integer Sequences! http://oeis.org/ Search: id:a330970 Showing 1-1 of 1 %I A330970 #9 Jan 05 2020 14:41:11 %S A330970 0,1,2,3,4,5,6,7,8,9,0,11,0,11,4,13,2,11,0,19,20,1,11,23,4,11,25,3,11, %T A330970 29,20,31,2,11,24,35,1,15,22,39,0,11,20,33,44,3,14,27,33,49,20,31,41, %U A330970 51,4,11,20,31,44,59,40,51,62,3,14,25,33,43,55,69,60 %N A330970 For any number n >= 0 with decimal digits (d_1, d_2, ..., d_k), the decimal expansion of a(n) is (n mod (1+d_1), n mod (1+d_2), ..., n mod (1+d_k)). %H A330970 Rémy Sigrist, Table of n, a(n) for n = 0..10000 %F A330970 a(n) <= n with equality iff n belongs to A330969. %F A330970 a(n) = 0 iff n belongs to A330971. %e A330970 For n = 42: %e A330970 - 42 mod (1+4) = 2, %e A330970 - 42 mod (1+2) = 0, %e A330970 - hence a(42) = 20. %o A330970 (PARI) a(n) = fromdigits(apply(d -> n%(d+1), digits(n))) %Y A330970 Cf. A330969 (fixed points), A330971 (indices of zeros). %K A330970 nonn,base,look %O A330970 0,3 %A A330970 _Rémy Sigrist_, Jan 05 2020 # Content is available under The OEIS End-User License Agreement: http://oeis.org/LICENSE