OFFSET
1,2
COMMENTS
The only numbers not of this form belong to the finite set {1, 2, 3, 4, 6, 8, 9, 11, 13, 16, 18, 23}. - Robert G. Wilson v
Starting with 24 all integers are here because 24 = (5-1)*(7-1). - Zak Seidov, Oct 21 2011
LINKS
FORMULA
a(n) = n + 11 for n > 12. - Charles R Greathouse IV, Oct 26 2011
EXAMPLE
a(7) = 17 because 5*2 + 7*1 = 17.
MAPLE
k:=array(0..47); n:=0; for i from 0 to 7 do for j from 0 to 5 do k[n] := 5*i + 7*j; n:=n+1; end do; end do; for i from 0 to 47 do for j from 0 to 47 do if(k[i] < k[j]) then temp:=k[j]; k[j]:=k[i]; k[i]:=temp; end if; end do; end do; print(k);
MATHEMATICA
Take[Union@ Flatten@ Table[5i + 7j, {i, 0, 35}, {j, 0, 25}], 70] (* Robert G. Wilson v *)
Union@ Flatten@ Table[5i + 7j, {i, 0, 81/5}, {j, 0, (81-5i)/7}] (* Zak Seidov, Oct 22 2011 *)
PROG
(PARI) a(n)=if(n>12, n+11, [0, 5, 7, 10, 12, 14, 15, 17, 19, 20, 21, 22][n]) \\ Charles R Greathouse IV, Oct 26 2011
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Ben Paul Thurston, Sep 29 2006
EXTENSIONS
Corrected and extended by Robert G. Wilson v, Sep 30 2006
STATUS
approved