A079170 a(n) is the next available entirely straight or curved number, depending on whether n contains a curved digit or not.
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 20, 41, 50, 52, 71, 80, 82, 111, 200, 202, 203, 205, 206, 208, 209, 220, 222, 223, 225, 226, 228, 229, 230, 232, 233, 235, 236, 238, 239, 250, 252, 411, 500, 502, 711, 800, 802, 1111, 2000, 2002, 2003, 2005, 2006, 2008, 2009, 2020
Offset: 0
Examples
a(10) must be the first entirely curved number greater than 9, as 0 is curved, therefore a(10)=20. a(17) must be the first entirely straight number greater than 82, therefore a(20)=111.
Links
- David Consiglio, Jr., Table of n, a(n) for n = 0..1000
- David Consiglio, Jr., Python program
Extensions
a(33) and beyond from David Consiglio, Jr., Oct 31 2023