A079064 a(n) is the next available entirely straight or curved number, depending on whether n contains a straight digit or not.
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 14, 17, 41, 44, 47, 71, 74, 77, 111, 200, 411, 500, 502, 711, 800, 802, 1111, 2000, 2002, 2003, 4111, 5000, 5002, 7111, 8000, 8002, 11111, 20000, 20002, 41111, 41114, 41117, 41141, 41144, 41147, 41171, 41174, 41177, 41411, 50000
Offset: 0
Examples
a(10) must be the first entirely straight number greater than 9, as 1 is straight, therefore a(10)=11. a(20) must be the first entirely curved number greater than 111, therefore a(20)=200.
Links
- David Consiglio, Jr., Table of n, a(n) for n = 0..1000
- David Consiglio, Jr., Python program
Extensions
Edited by Charles R Greathouse IV, Aug 02 2010
a(35) and beyond from David Consiglio, Jr., Oct 31 2023