Key points from article :
Older men and women who engage in regular sexual activity have better cognitive functioning.
Possible due to biological effect of dopamine.
Sexual activity has elements of both social and physical activity which are also linked to better cognitive function.
Study can't tell whether sexual activity keeps the brain functioning well, or whether people with better cognitive function are more likely to continue to have sex.
The study was published in the Journals of Gerontology.