OFFSET
1,2
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
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
KEYWORD
nonn,base
AUTHOR
STATUS
approved