A226195 Numbers n = x0 x1 x2...x9 such that xi is the number of digits greater than i in n.
1, 10, 21, 22, 100, 210, 220, 311, 321, 332, 333, 1000, 2100, 2200, 3110, 3210, 3320, 3330, 4111, 4211, 4321, 4331, 4422, 4432, 4443, 4444, 10000, 21000, 22000, 31100, 32100, 33200, 33300, 41110, 42110, 43210, 43310, 44220, 44320, 44430, 44440, 51111, 52111
Offset: 1
Examples
x0 x1 x2 x3 = 4211 is in the sequence because, for i = 0, 1, 2, 3: xi > 0 (4 times) => x0 = 4; xi > 1 (2 times) => x1 = 2; xi > 2 (1 time) => x2 = 1; xi > 3 (1 time) => x3 = 1.
Links
- Michel Lagneau, Table of n, a(n) for n = 1..1142
Programs
-
Maple
T:=array(1..10):for n from 1 to 100000 do:nn:=length(n):for a from 1 to nn do:T[a] :=0:od:x:=convert(n,base,10): for k from 1 to nn do:for i from 1 to nn do: if k-1
Comments