login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A249855 Numbers <= 10^6 with valid Luhn mod 10 check digit, sorted first by check digit, then lexicographically. 3
0, 100040, 100180, 100230, 100370, 100420, 100560, 100610, 100750, 100800, 10090, 100990, 101030, 101170, 101220, 101360, 10140, 101410, 101550, 101600, 101790, 101840, 101980, 102020, 102160, 102210, 102350, 102400, 102590, 102640, 102780, 10280, 102830 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
LINKS
Wikipedia, Luhn algorithm
PROG
(Haskell)
import Data.List (sortBy); import Data.Function (on)
a249855 n = a249855_list !! (n-1)
a249855_list = sortBy (compare `on` f) $ takeWhile (<= 10^6) a093018_list
where f x = (head $ reverse ds, ds) where ds = show x
CROSSREFS
Sequence in context: A120216 A119902 A182092 * A120217 A120218 A365375
KEYWORD
nonn,base,fini,full,look
AUTHOR
Reinhard Zumkeller, Nov 08 2014
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 18 20:26 EDT 2024. Contains 371781 sequences. (Running on oeis4.)