OFFSET
0,2
COMMENTS
Conjecture: this sequence in various bases never includes a term divisible by the base.
REFERENCES
Inspired by discussion of "True so far" from Eric Angelini (A102357).
EXAMPLE
The first 9 values of the sequence written in decimal include no '0's and 1 '1', so the next value cannot be 10 (the count of '0's is not 1) but can be 11.
MAPLE
A102827aux := proc(n, dig)
local c, d ;
c := 0 ;
for d in convert(n, base, 10) do
if d = dig then
c := c+1 ;
end if;
end do:
c ;
end proc:
A102827 := proc(n)
option remember;
local a, a10, ad, cum;
if n < 8 then
return n+1 ;
end if;
for a from 1 do
a10 := floor(a/10) ;
ad := a mod 10 ;
cum := add( A102827aux(procname(i), ad), i=0..n-1) ;
if cum = a10 then
return a;
end if;
end do:
end proc: # R. J. Mathar, Mar 30 2014
CROSSREFS
KEYWORD
nonn,easy,base
AUTHOR
Hugo van der Sanden, Feb 26 2005
STATUS
approved