OFFSET
0,2
EXAMPLE
For n = 3, a(3) = 17 because the difference between cosh(4) and cosh(3) is 17.24057..., and floor(17.24057...) = 17.
MATHEMATICA
a[n_] := Floor[Cosh[n+1] - Cosh[n]]; Array[a, 30, 0] (* Amiram Eldar, Jul 12 2021 *)
PROG
(C++)
#include <iostream>
#include <cmath>
using namespace std; int main(int argc, char** argv){for (int n=0; n<=10; n++) {double val = cosh(n+1)-cosh(n); int a = floor(val); cout << a <<", "; }}
CROSSREFS
KEYWORD
nonn
AUTHOR
Treanungkur Mal, Jul 08 2021
EXTENSIONS
More terms from Jinyuan Wang, Jul 08 2021
STATUS
approved