A376692 Numbers with the most significant digit odd and alternating parity of digits.
1, 3, 5, 7, 9, 10, 12, 14, 16, 18, 30, 32, 34, 36, 38, 50, 52, 54, 56, 58, 70, 72, 74, 76, 78, 90, 92, 94, 96, 98, 101, 103, 105, 107, 109, 121, 123, 125, 127, 129, 141, 143, 145, 147, 149, 161, 163, 165, 167, 169, 181, 183, 185, 187, 189, 301, 303, 305, 307, 309
Offset: 1
Links
- Andrew Howroyd, Table of n, a(n) for n = 1..10000
Programs
-
PARI
isok(n)=my(d=digits(n)); for(i=1, #d, if((d[i]-i)%2, return(0))); 1