Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A120432
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A120432 Numbers n such that n-1 and n+1 are prime powers. +0
1
2, 3, 4, 6, 8, 10, 12, 18, 24, 26, 28, 30, 42, 48, 60, 72, 80, 82, 102, 108, 126, 138, 150, 168, 180, 192, 198, 228, 240, 242, 270, 282, 312, 348, 360, 420, 432, 462, 522, 570, 600, 618, 642, 660, 728, 810, 822, 828, 840, 858, 882, 1020, 1032, 1050, 1062, 1092 (list; graph; listen)
OFFSET

1,1

COMMENT

A generalization of A014574.

FORMULA

{2} UNION A088071. [From R. J. Mathar (mathar(AT)strw.leidenuniv.nl), Aug 07 2008]

EXAMPLE

10 is in the sequence because both 9 and 11 are prime powers; 26 is in the sequence because both 25 and 27 are prime powers.

MAPLE

with(numtheory): a:=proc(n) if nops(factorset(n-1))*nops(factorset(n+1))=1 then n else fi end: 2, seq(a(n), n=2..1500); - Emeric Deutsch (deutsch(AT)duke.poly.edu), Jul 23 2006

MATHEMATICA

Insert[Select[Range[3, 3000], Length[FactorInteger[ # - 1]] == Length[ FactorInteger[ # + 1]] == 1 &], 2, 1] - Stefan Steinerberger (stefan.steinerberger(AT)gmail.com), Jul 23 2006

CROSSREFS

Cf. A000961, A014574.

Sequence in context: A074715 A034287 A067128 this_sequence A020490 A014875 A029469

Adjacent sequences: A120429 A120430 A120431 this_sequence A120433 A120434 A120435

KEYWORD

nonn,new

AUTHOR

Greg Huber (huber(AT)alum.mit.edu), Jul 13 2006

EXTENSIONS

More terms from Emeric Deutsch (deutsch(AT)duke.poly.edu), Stefan Steinerberger (stefan.steinerberger(AT)gmail.com) and Ryan Propper (rpropper(AT)stanford.edu), Jul 23 2006

page 1

Search completed in 0.002 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified August 19 23:53 EDT 2008. Contains 142930 sequences.


AT&T Labs Research