Final answer:
To write a code for the equation a[n] = 2*a[n-1] + 3, use a loop to iterate through the terms and calculate them based on the previous term.
Step-by-step explanation:
To write a code for the equation a[n] = 2*a[n-1] + 3, you can use a loop to iterate through the terms. Start with the first term, a[0], which would be a base case. Then, use the equation to calculate the remaining terms by multiplying the previous term by 2 and adding 3. Here's an example code in Python:
a = [0]*n
a[0] = 1
for i in range(1, n):
a[i] = 2*a[i-1] + 3