OFFSET
1,1
COMMENTS
Also: Odd numbers with more than 2 digits (so you can swap any two digits other than the last one), or numbers having at least one odd digit not in the last position (so you can swap that one with the last digit). - M. F. Hasler, Sep 30 2012
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
F. Smarandache, Only Problems, Not Solutions!
FORMULA
a(n) ~ n. - Charles R Greathouse IV, Sep 19 2012
EXAMPLE
The transposition (1,2) (nontrivial permutation of order two) acting on 11 yields the odd number 11. - M. F. Hasler, Sep 30 2012
MAPLE
filter:= proc(n) local L;
L:= convert(n, base, 10) mod 2;
(L[1]=1 and nops(L) > 2) or max(L[2..-1])=1
end proc:
select(filter, [$10..1000]); # Robert Israel, Nov 21 2016
PROG
(PARI) is_A007959(n)=bittest(n, 0)&n>99 || while(n\=10, bittest(n, 0) & return(1)) \\ M. F. Hasler, Sep 30 2012
CROSSREFS
KEYWORD
nonn,base
AUTHOR
R. Muller
STATUS
approved