OFFSET
1,1
LINKS
Reinhard Zumkeller, Table of n, a(n) for n = 1..250
EXAMPLE
2036 is modest because Mod[2036, 36] = 20. 2037 is modest because Mod[2037, 037] = 2. Hence 2036 is this pair's modest twin representative.
PROG
(Haskell)
import Data.List (elemIndices)
a055018 n = a055018_list !! (n-1)
a055018_list = map (a054986 . (+ 1)) $ elemIndices 1 $
zipWith (-) (tail a054986_list) a054986_list
-- Reinhard Zumkeller, Mar 26 2012
CROSSREFS
KEYWORD
base,easy,nonn
AUTHOR
Hans Havermann, May 31 2000
STATUS
approved