Skip to content

Latest commit

 

History

History
15 lines (10 loc) · 262 Bytes

Perimeter sequence.md

File metadata and controls

15 lines (10 loc) · 262 Bytes

Description:

The first three stages of a sequence are shown.

The blocksize is a by a and a ≥ 1.

What is the perimeter of the nth shape in the sequence (n ≥ 1) ?

Solution:

function perimeterSequence(a, n) {
  return a * n * 4;
}