Donald Gifford Mayhew of Vineyard Haven died Tuesday at the Cape Cod Hospital. He was 87.

He was born in September 1931 at the new Martha’s Vineyard Hospital where his mother was the first director, the son of Everett Lindley Mayhew and Beatrice Livingstone Gifford of West Tisbury. His father was chief engineer on the steamship Martha’s Vineyard. Both parents had several Mayhew ancestors, as well as Tilton, Luce and Norton ancestors. Donald’s wife delighted in the fact that he was descended from both Daggett brothers, not only the one who married the governor’s daughter but also his brother who began what Islanders called the Bow and Arrow Daggetts.

Donald had a keen memory. He could recite his most direct Mayhew lineage as was the family tradition, although his ancestry went back to Thomas Mayhew Sr. in 32 different lines. Curiosity led him to understanding and seeking both sides of an issue. He often noticed and remembered details others missed. He had a wicked sense of humor and wrote droll poetry.

He looked at the world as a giant puzzle, a thread that ran through his life from the early pursuit of an engineering degree, fixing his own bike, and working out how to retire early. His stories of his working life with Federal Aviation Administration often include details of some puzzle he solved using out-of-the-box thinking. His poetry was a form of puzzle, requiring careful construction. Even his philosophy degree addressed a way of figuring out how the world works. He enjoyed helping others with their computers less for the altruism and more for the challenge of a fresh puzzle.

His ethics made him seek the greater good in a situation. His integrity sometimes caused trouble. On a brief trip to Quebec with his young family, he and his wife needed and bought cheap watches. At the border the customs officers could not believe he declared these. They carefully searched the entire car, including the peanut butter and other kids’ snacks.

His family moved off Island when he was small; he spent most of his life planning to come back. He loved bicycling and would cycle from his home in Providence to visit his grandparents in West Tisbury. He graduated from Mount Hermon School and Brown University, with some graduate school at Brown in philosophy. He was Navy ROTC at Brown and served in the Army as occupation troops in Austria in the 1950s. He briefly taught high school math in New Jersey and ran a bowling alley in Warwick RI.

After he married Catherine (Kay) Merwin, they moved to Washington, D.C. where he began work as a systems analyst with the FAA and became fascinated with computers (in those days one would fill an entire room). His family lived in Bowie, Md., for many years. After early retirement in 1983, his family gift was his first personal computer. He and his wife returned to the Island he loved where he was pleased to find members from the Washington Ethical Society involved with the Unitarian Universalist Society.

He served as officer and board member of the Dukes County Historical Society, now the Martha’s Vineyard Museum, and diligently worked many hours for the Martha’s Vineyard chapter of the NAACP. He was on the original land bank committee and also served on the Tisbury board of health.

He loved his family, understanding and enjoying them more than they realized.

Besides his wife he is survived by a daughter Laurel Mayhew of Colorado and a son Craig Mayhew of Westborough; a brother Allen Mayhew of New Jersey; two granddaughters, and numersous nephews, a niece and cousins.

A memorial service will be held at the First Congregational Church of West Tisbury on Saturday, Feb. 9 at 1:30 p.m.

Donations can be made in his memory to Mount Hermon School, 1 Lamplighter Way, Gill, MA 01354; or to MV NAACP, P.O. Box 1513, Oak Bluffs, MA 02557.