login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A033035
Numbers such that all base 9 digits are odd.
5
1, 3, 5, 7, 10, 12, 14, 16, 28, 30, 32, 34, 46, 48, 50, 52, 64, 66, 68, 70, 91, 93, 95, 97, 109, 111, 113, 115, 127, 129, 131, 133, 145, 147, 149, 151, 253, 255, 257, 259, 271, 273, 275, 277, 289, 291, 293, 295, 307, 309, 311, 313, 415
OFFSET
1,2
LINKS
FORMULA
a(4n+j) = 9*a(n)+2*j-1 for j=1..4. - Robert Israel, Jan 23 2019
MAPLE
f:= proc(n) option remember; local m;
m:= floor((n-1)/4);
9*procname(m) + 2*n - 8*m - 1
end proc:
f(0):= 0:
map(f, [$1..100]); # Robert Israel, Jan 23 2019
MATHEMATICA
Select[Range[500], AllTrue[IntegerDigits[#, 9], OddQ]&] (* The program uses the AllTrue function from Mathematica version 10 *) (* Harvey P. Dale, Oct 14 2015 *)
Flatten[Table[FromDigits[#, 9]&/@Tuples[Range[1, 7, 2], n], {n, 3}]] (* Harvey P. Dale, Jun 13 2020 *)
CROSSREFS
Cf. A007095 (numbers in base 9).
Sequence in context: A184586 A190511 A260466 * A047390 A184653 A263085
KEYWORD
nonn,base
STATUS
approved