UNPKG

ap-nth-term

Version:

Find nth term of arithmetic progression from given array

8 lines 296 B
/** * Find nth term of arithmetic progression from given array * @param arr - array containing at least 2 terms of AP * @param n - nth term to find (1-based) * @returns nth term of AP */ export declare function findNthAP(arr: number[], n: number): number; //# sourceMappingURL=index.d.ts.map