Microsoft Microsoft excel 2007 open lice...

I want to create a column of numbers all of which are multiples of 6n-1. i can enter 6-1 which gives 5 but I don't know how to generate this series from the general expression 6n -1 since excel doesn't seem to deal with things in this form. any ideas?

Hi, Enter the letter n in A1 and 6n-1 in B1

Create a series of numbers in a column A

Enter 1 in A2 and enter 2 in A3.

Select both cells A2 and A3 and drag them down to create the series 1 to 10

In cell B2 enter this formula:=(6*A2)-1

Drag this formula down alongside the values in column A.This is the result:

n 6n-1 1 5 2 11 3 17 4 23 5 29 6 35 7 41 8 47 9 53 10 59Hope this is what you were looking for.

Regards

I have lots of ideas, but I don't know which one will work until you supply some more details. Please supply a little more info about "n" and include some inputs and outputs. My first guess would to use this:

=6*ROW() - 1

If this formula is in Row 1, it will evaluate to =6*1 - 1 (5)

In Row 2 you'll get =6*2 - 1 (11)

etc.If you need to adjust your "n" with an offset from the Row in which the formula resides, try something like:

=6*(ROW()+4) - 1

In Row 1 you'll get =6*(1+4) - 1 (29)

In Row 2 you'll get =6*(2+4) - 1 (35)I don't know if I'm even close to what you're looking for.

Thanks to both Humar and DerbyDad both your suggestions worked. And derbyDad's second formula is especially helpful since I also want to vary the value of n to be various prime numbers to go up the integers in steps of 47 for instance. The series of numbers derived from 6n+or-1 where n = the series 1,2,3,4....n contains mixed in it all primes over 3. once we have the first few primes we can I take any prime such as 47 then square it = 2209.

the 6n+or-1 numbers between 47 & 2209 but not equal to 2209 will only need to be checked for primality by dividing them only by the primes below 47. this will give all the primes in the range we have defined above 47.

I don't imagine there is a formula for that little lot! but that is why I needed to create the series that you helped me with.

I cobbled together the following to check the 47 series:

=(IF(OR(MOD(K7,5)=0,MOD(K7,7)=0,MOD(K7,11)=0,MOD(K7,13)=0,

MOD(K7,17)=0,MOD(K7,19)=0,MOD(K7,23)=0,MOD(K7,29)=0,

MOD(K7,31)=0,MOD(K7,37)=0,MOD(K7,43)=0),"composite","prime"))if either of you feel strong enough to improve on that mouthful I would be grateful since the next series goes up to over 4 million and I don't think this way of filtering the results will be very effective!

cheers.

edited by moderator: Formula Split Into Multiple Lines

Ask Your Question

Weekly Poll

Do you think Google Fiber has a strong future?

Discuss in The Lounge

Poll History