Magic Octagon

    p a b
  o       c
n           d
m     q     e 
l           f
  k       g
    j i h
  Arrange the numbers 1-17 at positions a-q in the octagon, such that the eight sides (i.e. pab, bcd, ...) and the eight lines through the center (i.e. aqi, bqj, ...) all have the same sum.

For ease in comparing solutions, let 'a' be the smallest of (a,c,e,g,i,k,m,o) and 'b' be less than 'p'.

Source: Denis Borris.
Mail to Ken