Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: 4, _, _, _, _, 134
Displaying 1-10 of 12 results found. page 1 2
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A075277 Interprimes which are of the form s*prime, s=2. +20
21
4, 6, 26, 34, 86, 134, 254, 274, 334, 386, 446, 566, 974, 1126, 1226, 1234, 1286, 1294, 1546, 2066, 2374, 2386, 2554, 2854, 2906, 2966, 3086, 3326, 3694, 3898, 4054, 4286, 4594, 4742, 4846, 4874, 4954, 5006, 5218, 5366, 5686, 5714, 5854, 6238, 6274, 6326 (list; graph; listen)
OFFSET

1,1

COMMENT

Interprimes which are of the form s*prime are in A075277-A075296 (s = 2-21). Case s = 1 is impossible.

EXAMPLE

7646 is an interprime and 7646/2 = 3823 is prime.

MATHEMATICA

s=2; Select[Table[(Prime[n+1]+Prime[n])/2, {n, 2, 1000}], PrimeQ[ #/s]&]

CROSSREFS

Cf. A075277--A075296.

Sequence in context: A123055 A028273 A024471 this_sequence A159557 A054094 A123873

Adjacent sequences: A075274 A075275 A075276 this_sequence A075278 A075279 A075280

KEYWORD

easy,nonn

AUTHOR

Zak Seidov (zakseidov(AT)yahoo.com), Sep 12 2002

A087606 Smallest k such that n times concatenation of k with itself followed by a 9 is a prime, or 0 if no such number exists. +20
8
1, 2, 0, 1, 1, 0, 1, 11, 0, 64, 5, 0, 2, 31, 0, 1, 5, 0, 10, 65, 0, 41, 212, 0, 5, 79, 0, 41, 160, 0, 5, 94, 0, 8, 82, 0, 23, 43, 0, 40, 26, 0, 391, 119, 0, 212, 4, 0, 1, 160, 0, 134, 28, 0, 208, 50, 0, 248, 35, 0, 113, 43, 0, 79, 7, 0, 70, 170, 0, 64, 94, 0, 19, 86, 0, 10, 118, 0, 34, 98 (list; graph; listen)
OFFSET

1,2

COMMENT

Conjecture: a(3n) = 0. No other term is zero.

a(3n)=0: consider the sum of the digits modulo 3. For the same reason, if a(m) is divisible by 3 then a(m)=0. - Sam Alexander (amnalexander(AT)yahoo.com), Nov 15 2003

LINKS

XIAO Gang, Factoris - a program that factorizes huge integers, 1997-1999

EXAMPLE

a(2) = 2 as 229 is a prime. but 119 is not.

MATHEMATICA

s[b_]:=(v={}; l=Length[b]; Do[v=Join[v, IntegerDigits[b[[k]]]], {k, l}]; v); a[n_]:=If[Mod[n, 3]!= 0, (For[m = 1, ! PrimeQ[10*FromDigits[s[Table[m, {n}]]] +9], m++ ]; m), 0]; Table[a[n], {n, 90}] (Firoozbakht)

CROSSREFS

Cf. A086920, A087604, A087605, A087607, A087608, A087609, A087610.

Sequence in context: A060277 A101672 A083731 this_sequence A116799 A057556 A112761

Adjacent sequences: A087603 A087604 A087605 this_sequence A087607 A087608 A087609

KEYWORD

base,nonn

AUTHOR

Amarnath Murthy (amarnath_murthy(AT)yahoo.com), Sep 18 2003

EXTENSIONS

More terms from Sam Alexander (amnalexander(AT)yahoo.com), Nov 15 2003

More terms from Farideh Firoozbakht (mymontain(AT)yahoo.com), Feb 04 2005

A056309 Number of reversible strings with n beads using exactly two different colors. +20
5
0, 1, 4, 8, 18, 34, 70, 134, 270, 526, 1054, 2078, 4158, 8254, 16510, 32894, 65790, 131326, 262654, 524798, 1049598, 2098174, 4196350, 8390654, 16781310, 33558526, 67117054, 134225918, 268451838 (list; graph; listen)
OFFSET

1,3

COMMENT

A string and its reverse are considered to be equivalent.

REFERENCES

M. R. Nester (1999). Mathematical investigations of some plant interaction designs. PhD Thesis. University of Queensland, Brisbane, Australia.

FORMULA

A005418(n+1)-2.

CROSSREFS

Cf. A005418.

Sequence in context: A008374 A008240 A008375 this_sequence A007784 A008204 A080287

Adjacent sequences: A056306 A056307 A056308 this_sequence A056310 A056311 A056312

KEYWORD

nonn

AUTHOR

Marks R. Nester (nesterm(AT)dpi.qld.gov.au)

A048794 Subsets of natural numbers arranged in standard statistical (or Yates) order. +20
3
0, 1, 2, 12, 3, 13, 23, 123, 4, 14, 24, 124, 34, 134, 234, 1234, 5, 15, 25, 125, 35, 135, 235, 1235, 45, 145, 245, 1245, 345, 1345, 2345, 12345, 6, 16, 26, 126, 36, 136, 236, 1236, 46, 146, 246, 1246, 346, 1346, 2346, 12346, 56, 156, 256, 1256, 356, 1356 (list; graph; listen)
OFFSET

0,3

REFERENCES

S. Hedayat, N. J. A. Sloane and J. Stufken, Orthogonal Arrays, Springer-Verlag, NY, 1999, p. 249.

FORMULA

Constructed recursively: subsets that include n are obtained by appending n to all earlier subsets.

EXAMPLE

empty; 1; 2; 1 2; 3; 1 3; 2 3; 1 2 3;...

PROGRAM

(C:) #include <stdio.h> #include <stdlib.h> #define USAGE "Usage: 'A048794 num' where num is the largest number to use creating sets.\n" #define MAX_NUM 10 #define MAX_ROW 1024 int main(int argc, char *argv[]) { unsigned char a[MAX_ROW][MAX_NUM]; signed short old_row, new_row, i, j, end; if (argc < 2) { fprintf(stderr, USAGE); return EXIT_FAILURE; } end = atoi(argv[1]); end = (end > MAX_NUM) ? MAX_NUM: end; for (i = 0; i < MAX_ROW; i++) for ( j = 0; j < MAX_NUM; j++) a[i][j] = 0; a[1][0] = '1'; new_row = 2; for (i = 2; i <= end; i++) { sprintf(&a[new_row++ ][0], "%d", i); for (old_row = 1; a[old_row][0] != (i+48); old_row++) { sprintf(&a[new_row++ ][0], "%s%d", &a[old_row][0], i); } } fprintf(stdout, "Values: 0"); for (i = 1; a[i][0] != 0; i++) fprintf(stdout, ", %s", &a[i][0]); fprintf(stdout, "\n"); return EXIT_SUCCESS; }

CROSSREFS

Cf. A048793.

Sequence in context: A082827 A072484 A113698 this_sequence A164869 A082292 A164857

Adjacent sequences: A048791 A048792 A048793 this_sequence A048795 A048796 A048797

KEYWORD

nonn,easy,nice

AUTHOR

N. J. A. Sloane (njas(AT)research.att.com).

EXTENSIONS

More terms from Larry Reeves (larryr(AT)acm.org), Apr 11 2000

A090088 Smallest even pseudoprimes to odd base=2n-1, not necessarily exceeding n. See also A007535 and A090086, A090087. +20
3
4, 286, 4, 6, 4, 10, 4, 14, 4, 6, 4, 22, 4, 26, 4, 6, 4, 34, 4, 38, 4, 6, 4, 46, 4, 10, 4, 6, 4, 58, 4, 62, 4, 6, 4, 10, 4, 74, 4, 6, 4, 82, 4, 86, 4, 6, 4, 94, 4, 14, 4, 6, 4, 106, 4, 10, 4, 6, 4, 118, 4, 122, 4, 6, 4, 10, 4, 134, 4, 6, 4, 142, 4, 146, 4, 6, 4, 14, 4, 158, 4, 6, 4, 166, 4, 10 (list; graph; listen)
OFFSET

1,1

COMMENT

For an even base there are no even pseudoprimes.

FORMULA

a(n)=Min{x=even number; Mod[ -1+n^(x-1), x]=0}

EXAMPLE

n=2, 2n-2=3 as base, smallest relevant power is -1+2^(286-1) which is divisible with 286.

CROSSREFS

Cf. A007535, A090986-A090089.

Sequence in context: A134786 A074309 A113256 this_sequence A110816 A112322 A110071

Adjacent sequences: A090085 A090086 A090087 this_sequence A090089 A090090 A090091

KEYWORD

nonn

AUTHOR

Labos E. (labos(AT)ana.sote.hu), Nov 25 2003

A101338 Anti-diagonal sums in A101321. +20
2
1, 2, 4, 9, 20, 41, 77, 134, 219, 340, 506, 727, 1014, 1379, 1835, 2396, 3077, 3894, 4864, 6005, 7336, 8877, 10649, 12674, 14975, 17576, 20502, 23779, 27434, 31495, 35991, 40952, 46409, 52394, 58940, 66081, 73852, 82289, 91429, 101310, 111971 (list; graph; listen)
OFFSET

0,2

FORMULA

n^4/24 + n^3/12 - n^2/24 + 11*n/12 + 1.

CROSSREFS

Sequence in context: A034749 A053024 A090166 this_sequence A018102 A018103 A123720

Adjacent sequences: A101335 A101336 A101337 this_sequence A101339 A101340 A101341

KEYWORD

nonn,easy

AUTHOR

Eugene McDonnell (eemcd(AT)mac.com), Dec 24 2004

A113698 Combinatorial sequence. Begin with 1 then 2 then 12 then 3 then all concatenations of all sizes of 1,2 and 3, then 4, then all concatenations of all sizes of 1,2,3,4 not included earlier etc. +20
2
1, 2, 12, 3, 13, 23, 123, 4, 14, 24, 34, 124, 134, 234, 1234, 5, 15, 25, 35, 45, 125, 135, 145, 235, 245, 345, 1235, 1245, 1345, 2345, 12345, 6, 16, 26, 36, 46, 56, 126, 136, 146, 156, 236, 246, 256, 346, 356, 456, 1236, 1246, 1256, 1346, 1356, 1456, 2346, 2356 (list; graph; listen)
OFFSET

1,2

COMMENT

The index of n is 2^n for n<10. After 9 if n ( like 13, 23) has appeared earlier it will not appear but it will be used in the concatenation at its turn as mentioned above. needs better description.

The sequence contains groups of integers generated from seeds s=1,2,3,4,... A group is the sorted list of numbers defined by the seed and all concatenations of integers of previous groups with the seed, discarding any duplicates. - R. J. Mathar (mathar(AT)strw.leidenuniv.nl), Aug 31 2007

EXAMPLE

The group 4, 14, 24, 34, 124, 134, 234, 1234 is generated from the seed s=4 itself and attaching s=4 to the previous elements 1, 2, 12, 3, 13, 23, 123, that is 14, 24, 124, 34, 134, 234, 1234, then sorting within the group (moving 34 between 24 and 124).

CROSSREFS

Cf. A113699.

Sequence in context: A012629 A082827 A072484 this_sequence A048794 A164869 A082292

Adjacent sequences: A113695 A113696 A113697 this_sequence A113699 A113700 A113701

KEYWORD

base,nonn

AUTHOR

Amarnath Murthy (amarnath_murthy(AT)yahoo.com), Nov 11 2005

EXTENSIONS

More terms from R. J. Mathar (mathar(AT)strw.leidenuniv.nl), Aug 31 2007

A160995 a(n) = the smallest positive integer neither a divisor of n nor coprime to n. +20
2
4, 6, 6, 10, 4, 14, 6, 6, 4, 22, 8, 26, 4, 6, 6, 34, 4, 38, 6, 6, 4, 46, 9, 10, 4, 6, 6, 58, 4, 62, 6, 6, 4, 10, 8, 74, 4, 6, 6, 82, 4, 86, 6, 6, 4, 94, 9, 14, 4, 6, 6, 106, 4, 10, 6, 6, 4, 118, 8, 122, 4, 6, 6, 10, 4, 134, 6, 6, 4, 142, 10, 146, 4, 6, 6, 14, 4, 158, 6, 6, 4, 166, 8, 10, 4, 6 (list; graph; listen)
OFFSET

2,1

COMMENT

a(1) doesn't exist because 1 is coprime to all integers.

FORMULA

a(p) = 2p, for all primes p.

CROSSREFS

Sequence in context: A104123 A094078 A016122 this_sequence A155750 A159475 A098350

Adjacent sequences: A160992 A160993 A160994 this_sequence A160996 A160997 A160998

KEYWORD

nonn

AUTHOR

Leroy Quet (q1qq2qqq3qqqq(AT)yahoo.com), Jun 01 2009

EXTENSIONS

Extended by Ray Chandler (rayjchandler(AT)sbcglobal.net), Jun 13 2009

A047732 First differences are A005563. +20
1
1, 4, 12, 27, 51, 86, 134, 197, 277, 376, 496, 639, 807, 1002, 1226, 1481, 1769, 2092, 2452, 2851, 3291, 3774, 4302, 4877, 5501, 6176, 6904, 7687, 8527, 9426, 10386, 11409, 12497, 13652, 14876, 16171, 17539, 18982, 20502, 22101, 23781 (list; graph; listen)
OFFSET

0,2

CROSSREFS

Sequence in context: A066185 A008107 A057306 this_sequence A104385 A062479 A007009

Adjacent sequences: A047729 A047730 A047731 this_sequence A047733 A047734 A047735

KEYWORD

nonn,easy

AUTHOR

Patternfinder(AT)webtv.net (Robert Newstedt)

A098051 Number of peakless Motzkin paths with no U H...HU's where U=(1,1) and H=(1,0) (can be easily expressed using RNA secondary structure terminology). +20
1
1, 1, 1, 2, 4, 8, 16, 32, 65, 134, 280, 592, 1264, 2722, 5906, 12900, 28344, 62608, 138949, 309692, 692905, 1555718, 3504016, 7915182, 17927154, 40702926, 92623758, 211217180, 482593474, 1104640484, 2532768508, 5816447840 (list; graph; listen)
OFFSET

0,4

REFERENCES

I. L. Hofacker, P. Schuster and P. F. Stadler, Combinatorics of RNA secondary structures, Discrete Appl. Math., 88, 1998, 207-237.

P. R. Stein and M. S. Waterman, On some new sequences generalizing the Catalan and Motzkin numbers, Discrete Math., 26, 1979, 261-272.

M. Vauchassade de Chaumont and G. Viennot, Polynomes orthogonaux et problemes d'enumeration en biologie moleculaire, Publ. I.R.M.A. Strasbourg, 1984, 229/S-08, Actes 8e Sem. Lotharingien, pp. 79-86.

LINKS

M. Vauchassade de Chaumont and G. Viennot, Polynomes orthogonaux at problemes d'enumeration en biologie moleculaire, Sem. Loth. Comb. B08l (1984) 79-86.

FORMULA

G.f.=G=G(z) satisfies G=1+zG+z^2*G[G-1-zG+z/(1-z)].

EXAMPLE

a(4)=4 because we have HHHH, UHDU, HUHD and UHHD; a(6)=16 because among all 17 peakless Motzkin paths of length 6 (see A004148) only (UHU)HDD does not qualify.

MAPLE

G:=(1-2*z+2*z^2-2*z^3-sqrt(1-4*z+4*z^2-4*z^5+4*z^6))/2/z^2/(1-z)^2: Gser:=series(G, z=0, 35): 1, seq(coeff(Gser, z^n), n=1..32);

CROSSREFS

Cf. A004148.

Sequence in context: A006211 A101333 A023421 this_sequence A084637 A100137 A141366

Adjacent sequences: A098048 A098049 A098050 this_sequence A098052 A098053 A098054

KEYWORD

nonn

AUTHOR

Emeric Deutsch (deutsch(AT)duke.poly.edu), Sep 11 2004

page 1 2

Search completed in 0.024 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 | The OEIS Foundation | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified February 9 11:24 EST 2010. Contains 172296 sequences.


AT&T Labs Research