We study the local Gromov-Witten invariants of O(k) ⊕ O(−k − 2) → P 1 by localization techniques and the Mariño-Vafa formula, using suitable circle actions. They are identified with the equivariant RiemannRoch indices of some power of the determinant of the tautological sheaves on the Hilbert schemes of points on the affine plane. We also compute the corresponding Gopakumar-Vafa invariants and make some conjectures about them.