OFFSET
1,2
EXAMPLE
2 mod 3 = 1 = a(10),
13 mod 2 = 1 = a(11),
7 mod 3 = 1 = a(12),
5 mod 2 = 1 = a(13),
4 mod 17 = 4 = a(14),
2 mod 3 = 2 = a(15),
2 mod 19 = 2 = a(16),
2 mod 2 = 0 = a(17),
5 mod 3 = 2 = a(18),
7 mod 2 = 1 = a(19),
11 mod 23 = 11 = a(20), etc.
MAPLE
pflat := proc(nmax) local a, ifs, n, p, c ; a := [0, 1] ; for n from 2 to nmax do ifs := ifactors(n)[2] ; for p in ifs do a := [op(a), op(1, p)] ; if op(2, p) > 1 then a := [op(a), op(2, p)] ; fi; od: od: a ; end: L := pflat(300) ; for n from 1 to nops(L)-2 by 2 do printf("%d, ", op(n, L) mod op(n+1, L) ) ; end do: # R. J. Mathar, Apr 29 2010
CROSSREFS
KEYWORD
nonn
AUTHOR
Juri-Stepan Gerasimov, Nov 20 2008
EXTENSIONS
a(10), a(43) and perhaps others corrected by R. J. Mathar, Apr 29 2010
STATUS
approved