The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A031954 Numbers with exactly two distinct base-9 digits. 5
9, 11, 12, 13, 14, 15, 16, 17, 18, 19, 21, 22, 23, 24, 25, 26, 27, 28, 29, 31, 32, 33, 34, 35, 36, 37, 38, 39, 41, 42, 43, 44, 45, 46, 47, 48, 49, 51, 52, 53, 54, 55, 56, 57, 58, 59, 61, 62, 63, 64, 65, 66, 67, 68, 69, 71, 72, 73, 74, 75, 76, 77, 78, 79, 81, 82, 90, 92, 93, 94, 95, 96, 97, 98, 100, 101, 109, 111 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
MAPLE
isA031954 := proc(n)
local dgs, p, s ;
dgs := convert(convert(n, base, 9), set) ;
if nops(dgs) = 2 then
true ;
else
false ;
end if ;
end proc:
A031954 := proc(n)
option remember ;
if n =1 then
9 ;
else
for a from procname(n-1)+1 do
if isA031954(a) then
return a;
end if;
end do:
end if;
end proc:
seq(A031954(n), n=1..80) ; # R. J. Mathar, Jan 24 2023
PROG
(PARI) a(n)=n+8+(n+7)\9 \\ Charles R Greathouse IV, Mar 10 2021
CROSSREFS
Cf. A007095.
Sequence in context: A233408 A107576 A263772 * A043631 A043698 A043457
KEYWORD
nonn,base,easy
AUTHOR
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified May 13 11:43 EDT 2024. Contains 372504 sequences. (Running on oeis4.)