A239019 Numbers which are not primitive words over the alphabet {0,...,9} (when written in base 10).
11, 22, 33, 44, 55, 66, 77, 88, 99, 111, 222, 333, 444, 555, 666, 777, 888, 999, 1010, 1111, 1212, 1313, 1414, 1515, 1616, 1717, 1818, 1919, 2020, 2121, 2222, 2323, 2424, 2525, 2626, 2727, 2828, 2929, 3030, 3131, 3232, 3333, 3434, 3535, 3636, 3737, 3838, 3939, 4040, 4141, 4242, 4343, 4444, 4545, 4646, 4747, 4848, 4949
Offset: 1
Links
- Robert Israel, Table of n, a(n) for n = 1..10000
Programs
-
Maple
F:= proc(d) local p,R,q; R:= {seq(x*(10^d-1)/9, x=1..9)}; for p in numtheory:-factorset(d) minus {d} do q:= d/p; R:= R union {seq(x*(10^d-1)/(10^q-1),x=10^(q-1)..10^q-1)}; od: sort(convert(R,list)) end proc: [seq(op(F(i)),i=2..4)]; # Robert Israel, Nov 14 2017
-
PARI
is_A239019(n)=fordiv(#n=digits(n),L,L<#n && n==concat(Col(vector(#n/L,i,1)~*vecextract(n,2^L-1))~)&&return(1))
Comments